摘要:
AC自动机裸题 1 #include 2 #include 3 #include 4 using namespace std; 5 const int maxnode=10000*50+5; 6 char in[1000000+5]; 7 struct Trie 8 { 9 int ch[maxnode][26];10 int val[maxnode];11 int fail[maxnode];12 int sz;13 void initial(){sz=1;memset(ch[0],0,sizeof(ch[0]));memset(val,0,sizeo... 阅读全文
posted @ 2013-10-12 18:01
sooflow
阅读(138)
评论(0)
推荐(0)