HDU2222 - Keywords Search(AC自动机)
摘要:
题目大意 给定n个字符串和一个文本串T,问你有多少个字符串在文本串中出现 题解 AC自动机裸题。。。唯一要注意的是字符串有重复。。。 代码: #include #include #include #include #include #include using namespace std;const int maxnode=500005;const int sigma_size=26;int an... 阅读全文
posted @ 2013-09-23 20:39 仗剑奔走天涯 阅读(207) 评论(0) 推荐(0) 编辑