A了3个多串匹配的水题模板View Code #include<cstdio>#include<cstring>#include<queue>using namespace std;const int maxn = 1000010;struct Tire{ int flag,fail; int next[26]; void init() { flag=0;fail=-1; for(int i=0;i<26;i++) next[i]=0; }}tb[maxn];int tot;char str[maxn];void insert(char... Read More
posted @ 2012-02-28 18:20 Because Of You Views(335) Comments(0) Diggs(0) Edit