正文
增加 1 行删除 1 行
91 行未改动929394959697989910020 行未改动91 行未改动int l1=strlen(s+1),tot=0;S2.init();for(int j=1;j<=l1;j++) S2.extend(idx(s[j]),0);for(int j=1;j<=S2.ndc;j++) S2.f[j]=S2.step[j];for(int j=1,u1=1,u2=1;j<=l1;j++){int c=idx(s[j]);u2=S2.ch[u2][c];if(S1.ch[u1][c]&&query(l+tot,r,1,n,rt[S1.ch[u1][c]])) u1=S1.ch[u1][c],tot++;20 行未改动91 行未改动929394959697989910020 行未改动91 行未改动int l1=strlen(s+1),tot=0;S2.init();for(int j=1;j<=l1;j++) S2.extend(idx(s[j]),0);for(int j=1;j<=S2.ndc;j++) S2.f[j]=S2.step[j];for(int j=1,u1=1,u2=1;j<=l1;j++){int c=idx(s[j]);u2=S2.ch[u2][c];if(S1.ch[u1][c]&&query(l+tot,r,1,n,rt[S1.ch[u1][c]])) u1=S1.ch[u1][c],tot++;20 行未改动