kmp
摘要:
总体来说,你、n%(n-next[n])==0代表有循环节,n-next[n]代表循环节长度,n/(n-next[n])代表循环节个数 #include <cstdio> #include <cstring> using namespace std; int next[1000]; char a[1 阅读全文
posted @ 2020-09-12 14:00
Chri_K
阅读(35)
评论(0)
推荐(0)
浙公网安备 33010602011771号