随笔分类 -  字符串-AC自动机

摘要:Problem Description In the modern time, Search engine came into the life of everybody like Google, Baidu, etc.Wiskey also wants to bring this feature 阅读全文
posted @ 2017-03-15 00:43 Robin! 阅读(126) 评论(0) 推荐(0) 编辑
摘要:1 #include 2 using namespace std; 3 #define M(a, b) memset(a, b, sizeof(a)); 4 const int maxn = 1000 + 10; 5 6 struct AhoCorasickAutomata { 7 int ch[maxn][26], val[maxn], last[maxn], f[ma... 阅读全文
posted @ 2017-02-20 20:41 Robin! 阅读(499) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示