摘要: ac自动机 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 const int maxnode=150*70+5; 7 char s[155][75]; 8 char in[1000000+5]; 9 struct Trie 10 { 11 int ch[maxnode][26]; 12 int val[maxnode]; 13 int f[maxnode]; 14 int cnt[155]; 15 int sz; 16 void init... 阅读全文
posted @ 2013-10-13 11:02 sooflow 阅读(232) 评论(0) 推荐(0) 编辑