随笔分类 -  模版 / 字符串(模板)

【模板】AC自动机(不同模板,不同难度)
摘要:**注意 query() 函数** #include <bits/stdc++.h> using namespace std; const int N=1e6+10; int n; char s[N],t[N]; struct AC { int cnt,fail; int child[27]; }t 阅读全文
posted @ 2024-11-28 12:06 Ueesugi_sakura 阅读(33) 评论(0) 推荐(0)