hdu2896 输出可以匹配串的id(AC自动机)
摘要:end数组表示id,开一个used数组记录哪些被匹配过 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 int used[505]; 7 struct AC 8 { 9 int next[...
阅读全文
posted @ 2015-02-03 20:12
posted @ 2015-02-03 20:12
posted @ 2015-02-03 20:08