摘要: #include using namespace std; struct Aho { int next[500010][26],fail[500010],cnt[500010]; int root,L; int newnode() { for(int i = 0;i Q; fail[root] = root; f... 阅读全文
posted @ 2018-01-26 18:49 啦啦啦天啦噜 阅读(142) 评论(0) 推荐(0)
摘要: 题意:就是让你求两个字符串的最大子串 阅读全文
posted @ 2018-01-26 18:46 啦啦啦天啦噜 阅读(152) 评论(0) 推荐(0)