上一页 1 ··· 4 5 6 7 8
摘要: #include <stdio.h>#include <string.h>#include <queue>using namespace std;const int MAXN = 250010;const int K = 26;struct Trie{ int wordEnd; int fail; int next[K]; void init(){ wordEnd = 0; fail = -1; memset(next, 0, sizeof(next)); } }tree[MAXN];int cnt;char str[1000010];void prePro 阅读全文
posted @ 2011-04-07 16:46 L.. 阅读(229) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8