0_0_13955722_8351\Main.java:1: 错误: 非法字符: '#'
#include <iostream>
^
0_0_13955722_8351\Main.java:1: 错误: 需要class, interface或enum
#include <iostream>
^
0_0_13955722_8351\Main.java:2: 错误: 非法字符: '#'
#include <cstring>
^
0_0_13955722_8351\Main.java:3: 错误: 非法字符: '#'
#include <cstdio>
^
0_0_13955722_8351\Main.java:4: 错误: 非法字符: '#'
#include <cstdlib>
^
0_0_13955722_8351\Main.java:6: 错误: 非法字符: '#'
#define N 100010
^
0_0_13955722_8351\Main.java:7: 错误: 非法字符: '#'
#define ll long long
^
0_0_13955722_8351\Main.java:9: 错误: 需要class, interface或enum
const ll MOD=1000000007;
^
0_0_13955722_8351\Main.java:10: 错误: 需要class, interface或enum
int ext[N*4];
^
0_0_13955722_8351\Main.java:11: 错误: 需要class, interface或enum
int next[N*2];
^
0_0_13955722_8351\Main.java:12: 错误: 需要class, interface或enum
void cnt_Next(int t[],int n,int *next){
^
0_0_13955722_8351\Main.java:14: 错误: 需要class, interface或enum
while ( t[i]==t[i+1] ) i++;
^
0_0_13955722_8351\Main.java:15: 错误: 需要class, interface或enum
next[1]=i;
^
0_0_13955722_8351\Main.java:16: 错误: 需要class, interface或enum
for (int i=2;i<n;i++){
^
0_0_13955722_8351\Main.java:16: 错误: 需要class, interface或enum
for (int i=2;i<n;i++){
^
0_0_13955722_8351\Main.java:16: 错误: 需要class, interface或enum
for (int i=2;i<n;i++){
^
0_0_13955722_8351\Main.java:18: 错误: 需要class, interface或enum
int l=next[i-last];
^
0_0_13955722_8351\Main.java:19: 错误: 需要class, interface或enum
if( l<len-i+1 )
^
0_0_13955722_8351\Main.java:21: 错误: 需要class, interface或enum
else{
^
0_0_13955722_8351\Main.java:23: 错误: 需要class, interface或enum
if ( j<0 ) j=0;
^
0_0_13955722_8351\Main.java:24: 错误: 需要class, interface或enum
while ( i+j<n && t[i+j]==t[j] ) j++;
^
0_0_13955722_8351\Main.java:25: 错误: 需要class, interface或enum
next[i]=j;
^
0_0_13955722_8351\Main.java:26: 错误: 需要class, interface或enum
last=i;
^
0_0_13955722_8351\Main.java:27: 错误: 需要class, interface或enum
}
^
0_0_13955722_8351\Main.java:34: 错误: 需要class, interface或enum
cnt_Next(t,tn,next);
^
0_0_13955722_8351\Main.java:35: 错误: 需要class, interface或enum
while( t[i]==s[i] ) i++;
^
0_0_13955722_8351\Main.java:36: 错误: 需要class, interface或enum
Ext[0]=i;
^
0_0_13955722_8351\Main.java:37: 错误: 需要class, interface或enum
for(int i=1;i<sn;i++){
^
0_0_13955722_8351\Main.java:37: 错误: 需要class, interface或enum
for(int i=1;i<sn;i++){
^
0_0_13955722_8351\Main.java:37: 错误: 需要class, interface或enum
for(int i=1;i<sn;i++){
^
0_0_13955722_8351\Main.java:39: 错误: 需要class, interface或enum
int l=next[i-last];
^
0_0_13955722_8351\Main.java:40: 错误: 需要class, interface或enum
if ( l<len-i+1 )
^
0_0_13955722_8351\Main.java:42: 错误: 需要class, interface或enum
else{
^
0_0_13955722_8351\Main.java:44: 错误: 需要class, interface或enum
if ( j<0 ) j=0;
^
0_0_13955722_8351\Main.java:45: 错误: 需要class, interface或enum
while ( s[i+j]==t[j] && j<tn && i+j<sn ) j++;
^
0_0_13955722_8351\Main.java:46: 错误: 需要class, interface或enum
Ext[i]=j;
^
0_0_13955722_8351\Main.java:47: 错误: 需要class, interface或enum
last=i;
^
0_0_13955722_8351\Main.java:48: 错误: 需要class, interface或enum
}
^
0_0_13955722_8351\Main.java:54: 错误: 需要class, interface或enum
return gcd(b,a%b);
^
0_0_13955722_8351\Main.java:55: 错误: 需要class, interface或enum
}
^
0_0_13955722_8351\Main.java:58: 错误: 需要class, interface或enum
d=a; x=1; y=0;
^
0_0_13955722_8351\Main.java:58: 错误: 需要class, interface或enum
d=a; x=1; y=0;
^
0_0_13955722_8351\Main.java:59: 错误: 需要class, interface或enum
}
^
0_0_13955722_8351\Main.java:62: 错误: 需要class, interface或enum
ll t=x; x=y; y=t-(a/b)*y;
^
0_0_13955722_8351\Main.java:62: 错误: 需要class, interface或enum
ll t=x; x=y; y=t-(a/b)*y;
^
0_0_13955722_8351\Main.java:62: 错误: 需要class, interface或enum
ll t=x; x=y; y=t-(a/b)*y;
^
0_0_13955722_8351\Main.java:63: 错误: 需要class, interface或enum
}
^
0_0_13955722_8351\Main.java:67: 错误: 需要class, interface或enum
ll mul=ta;
^
0_0_13955722_8351\Main.java:68: 错误: 需要class, interface或enum
while (tb){
^
0_0_13955722_8351\Main.java:70: 错误: 需要class, interface或enum
tb=tb/2;
^
0_0_13955722_8351\Main.java:71: 错误: 需要class, interface或enum
mul=(mul*mul)%MOD;
^
0_0_13955722_8351\Main.java:72: 错误: 需要class, interface或enum
}
^
0_0_13955722_8351\Main.java:74: 错误: 需要class, interface或enum
}
^
0_0_13955722_8351\Main.java:76: 错误: 需要class, interface或enum
int str[N*4];
^
0_0_13955722_8351\Main.java:77: 错误: 需要class, interface或enum
int v[N],e[N];
^
0_0_13955722_8351\Main.java:78: 错误: 需要class, interface或enum
int main(){
^
0_0_13955722_8351\Main.java:80: 错误: 需要class, interface或enum
scanf("%d",&test);
^
0_0_13955722_8351\Main.java:81: 错误: 需要class, interface或enum
while (test--){
^
0_0_13955722_8351\Main.java:83: 错误: 需要class, interface或enum
for (int i=1;i<=n;i++)
^
0_0_13955722_8351\Main.java:83: 错误: 需要class, interface或enum
for (int i=1;i<=n;i++)
^
0_0_13955722_8351\Main.java:83: 错误: 需要class, interface或enum
for (int i=1;i<=n;i++)
^
0_0_13955722_8351\Main.java:85: 错误: 需要class, interface或enum
for (int j=1;j<=n;j++)
^
0_0_13955722_8351\Main.java:85: 错误: 需要class, interface或enum
for (int j=1;j<=n;j++)
^
0_0_13955722_8351\Main.java:85: 错误: 需要class, interface或enum
for (int j=1;j<=n;j++)
^
0_0_13955722_8351\Main.java:87: 错误: 需要class, interface或enum
for (int i=0;i<n*2;i++)
^
0_0_13955722_8351\Main.java:87: 错误: 需要class, interface或enum
for (int i=0;i<n*2;i++)
^
0_0_13955722_8351\Main.java:87: 错误: 需要class, interface或enum
for (int i=0;i<n*2;i++)
^
0_0_13955722_8351\Main.java:89: 错误: 需要class, interface或enum
else mode[i]=e[(i+1)/2];
^
0_0_13955722_8351\Main.java:90: 错误: 需要class, interface或enum
for (int i=0;i<n*4;i++)
^
0_0_13955722_8351\Main.java:90: 错误: 需要class, interface或enum
for (int i=0;i<n*4;i++)
^
0_0_13955722_8351\Main.java:90: 错误: 需要class, interface或enum
for (int i=0;i<n*4;i++)
^
0_0_13955722_8351\Main.java:92: 错误: 需要class, interface或enum
else str[i]=mode[i-2*n];
^
0_0_13955722_8351\Main.java:93: 错误: 需要class, interface或enum
ext_KMP(str,n*4,mode,n*2,ext,next);
^
0_0_13955722_8351\Main.java:94: 错误: 需要class, interface或enum
long long ans=0;
^
0_0_13955722_8351\Main.java:95: 错误: 需要class, interface或enum
long long tot=0;
^
0_0_13955722_8351\Main.java:96: 错误: 需要class, interface或enum
for (int i=2;i<=2*n;i+=2){
^
0_0_13955722_8351\Main.java:96: 错误: 需要class, interface或enum
for (int i=2;i<=2*n;i+=2){
^
0_0_13955722_8351\Main.java:96: 错误: 需要class, interface或enum
for (int i=2;i<=2*n;i+=2){
^
0_0_13955722_8351\Main.java:98: 错误: 需要class, interface或enum
if (ext[i]==2*n) k=i/2;
^
0_0_13955722_8351\Main.java:99: 错误: 需要class, interface或enum
else continue;
^
0_0_13955722_8351\Main.java:100: 错误: 需要class, interface或enum
tot++;
^
0_0_13955722_8351\Main.java:101: 错误: 需要class, interface或enum
int tp=gcd(k,n);
^
0_0_13955722_8351\Main.java:103: 错误: 需要class, interface或enum
ans=(ans+pow(c,tp))%MOD;
^
0_0_13955722_8351\Main.java:104: 错误: 需要class, interface或enum
}
^
0_0_13955722_8351\Main.java:109: 错误: 需要class, interface或enum
exgcd(tot,MOD,tp1,tp2,tp3);
^
0_0_13955722_8351\Main.java:110: 错误: 需要class, interface或enum
ans=((ans*tp2)%MOD+MOD)%MOD;
^
0_0_13955722_8351\Main.java:111: 错误: 需要class, interface或enum
cout<<ans<<endl;
^
0_0_13955722_8351\Main.java:112: 错误: 需要class, interface或enum
}
^
0_0_13955722_8351\Main.java:114: 错误: 需要class, interface或enum
}
^
89 个错误
|