随笔 - 1659  文章 - 0  评论 - 100  阅读 - 188万
11 2020 档案
国防科大KMP算法求next数组(下标从0开始,相当于优化后的nextval)
摘要:#include<bits/stdc++.h> using namespace std; int main(){ char s[105]; while(cin>>s) { int next[105]; memset(next,0,sizeof(next)); int i=0,j=-1; next[0 阅读全文
posted @ 2020-11-22 16:03 蔡军帅 阅读(401) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示