玄学代码不知道怎么过的,为啥要 for(int j = ne[cnt] ; j ; j = ne[j])???? #include <iostream> #include <cstring> #include <algorithm> using namespace std; const int N = 1000010; char s[N],temp[N]; int ne[N],ne1[N]; void substr(int cnt) { for(int i = 1; i <= cnt; i ++) temp[i] = s[...