2015年9月3日
摘要: struct ACauto{ int ch[maxn][26]; int sz; int f[maxn],last[maxn],val[maxn],cnt[maxn]; void init(){ sz=1; memset(ch[0],0,sizeo... 阅读全文
posted @ 2015-09-03 18:36 Beserious 阅读(209) 评论(0) 推荐(0) 编辑
摘要: #include#include#include#include#include#define maxn 10000using namespace std;int f[maxn];void getfail(char *p,int *f){ int m=strlen(p); f[0]=0;... 阅读全文
posted @ 2015-09-03 15:23 Beserious 阅读(269) 评论(0) 推荐(0) 编辑
摘要: Cyclic NacklaceTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 4420Accepted Submission(s): 2011Pro... 阅读全文
posted @ 2015-09-03 15:02 Beserious 阅读(215) 评论(0) 推荐(0) 编辑