摘要:
转自bochuan007:#include<iostream> #include<string> using namespace std; string a,b; int p[10000]; int i,j,m,n; int main(){ cin>>a; cin>>b; n=a.length(); m=b.length(); p[0]=-1; j=-1; for(i=1;i<=b.length();i++){ while((j>0)&&(b[j+1]!=b[i])) ... 阅读全文