摘要: 跑ac自动机后使用fail树建立dfs序后跑树状数组维护答案 #include<bits/stdc++.h> using namespace std; typedef long long ll; const int N=1e6+10; struct node{ int cnt; node * nxt 阅读全文
posted @ 2020-07-18 23:10 朝暮不思 阅读(164) 评论(0) 推荐(0)