摘要: ac自动机: 给你若干个单词,判断一段文字里边这些单词出现了吗,在哪出现,出现几次? 首先是字典树模板: #include<bits/stdc++.h> #define debug printf("!"); using namespace std; const int maxn=1e3+50; st 阅读全文
posted @ 2019-10-23 15:53 草丛怪 阅读(162) 评论(0) 推荐(0)