Singing Superstar HDU - 7064
Singing Superstar HDU - 7064题意:问在串T中出现了几次不相交的串S?每次有n个串S询问题解:AC自动机板子题。。直接上模板代码:#include <bits/stdc++.h>#include <unordered_map>#define debug(a, b) printf("%s = %d\n", a, b);using namespace std;const int maxnode= 5e5;const int sigma_
原创
2021-08-13 12:08:33 ·
330 阅读 ·
0 评论