2020年4月22日

AC自动机

摘要: 1. Keywords Search 题目链接:hdu - 2222 题意:n个模式串和一个文本串,问有多少个模式串在文本串中出现过 思路:AC自动机模板题,把n个模式串插入自动机中,然后文本串在自动机上暴力跳fail即可 #include <iostream> #include <algorith 阅读全文

posted @ 2020-04-22 09:29 啊啊鄂 阅读(139) 评论(0) 推荐(2) 编辑

导航