HDU 1711 KMP 模板题
https://vjudge.net/problem/HDU-1711#include <bits/stdc++.h>using namespace std;const int MAXN = 1e6 + 5, MAXM = 1e4 + 5;int n, m;int a[MAXN], b[MAXM];int nxt[MAXM];void preKMP() { int i, j; j = nxt[0] = -1; i = 0;
原创
2020-08-28 18:52:19 ·
120 阅读 ·
0 评论