KMP字符串 字符串匹配 暴力做法 char p[n],q[m]; for(int i=0;i<n;i++) { bool flag = true; for(int j=0;j<m;j++) { if(p[i+j-1]!=q[j]) flag =