2016 ACM/ICPC Asia Regional Qingdao Online 1003(AC自动机)
Family View
题意:给出一系列的敏感词,如果下面文本以敏感词作为子串,那么输出'*'。
代码:
#include
using namespace std;
const int MAXN = 1000000+100;
char str[MAXN];
int pos[MAXN];
struct Aho_Corasick
{
const static int maxn
原创
2017-09-15 21:56:00 ·
297 阅读 ·
0 评论