摘要:
Keywords SearchAC自动机典型模板/*写于13年4月1日,AC自动机练习参考的别人代码,个人觉得自动机就是trie 外加kmp的有机组合*/#include<string.h>#include <iostream>#include <stdio.h>using namespace std;const int maxn=10010*50;char str[1000010];//文本串struct node{ node *fail; node *next[26]; int flag; node() { fail=NULL; f... 阅读全文