- 博客(1)
- 收藏
- 关注
原创 KMP模板
#include #include using namespace std; char pat[1005],text[1000005]; int lenp,lens; int next[1005],ans[1000005],pos; void cal_next(){ next[1]=0; for(int i=2;i<=lenp;i++){ int j=next[i-1]; while(
2016-12-21 22:34:14 425
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人