hdu3336

http://acm.hdu.edu.cn/showproblem.php?pid=3336

#include 
#include 
#include 
using namespace std;
int next[200005];
char str[200005];
void get_next(char *str,int n)
{
    int i,j;
    next[0]=-1;
    i=0;j=-1;
    while(i10007)
                s=s%10007;
        }
        s=s+n;
        s=s%10007;
        printf("%d\n",s);
    }
    return 0;
}


你可能感兴趣的:(acm字符串匹配)