2013年3月22日
摘要:
http://acm.hdu.edu.cn/showproblem.php?pid=3065AC自动机代码:#include<iostream>#include<cmath>#include<cstdio>#include<string>#include<cstring>#include<vector>#include<stack>#include<queue>#include<set>#include<map>#include<algorithm>#define 阅读全文
摘要:
http://acm.hdu.edu.cn/showproblem.php?pid=2896AC自动机ASCII可见字符是从 33~126代码:#include<iostream>#include<cmath>#include<cstdio>#include<string>#include<cstring>#include<vector>#include<stack>#include<queue>#include<set>#include<map>#include<al 阅读全文
摘要:
http://acm.hdu.edu.cn/showproblem.php?pid=2222第一个AC自动机AC自动机就是在trie上进行kmp需要三个步骤1,建立trie2,求fail指针3,匹配代码:#include<iostream>#include<cmath>#include<cstdio>#include<string>#include<cstring>#include<vector>#include<stack>#include<queue>#include<set>#in 阅读全文