#include <bits/stdc++.h>
using namespace std;
const int MaxN = 1000000 + 5;
int N, L;
char str[MaxN], str2[MaxN];
struct SAM {
int cntv;
int nxt[MaxN];
int last[26], ch[26][MaxN];
SAM...
自动AC机
Keywords Research
板子题,同luoguP3808,不过是多测。
然后多测不清空,\(MLE\)两行泪。
板子放一下
#include<bits/stdc++.h>
using namespace std;
#define ll int
#define ull unsigned long ...
Keywords Search HDU - 2222
贴个vj的链接https://vjudge.net/problem/HDU-2222
题意:T组数据,n个单词,再给你一个串,看有几个单词在这个串里面出现过
Sample Input
1
5
she
he
say
shr
her
yasher...