摘要: 接上一篇hihocoder上KMP算法题,这段代码本地测试通过,提交超时,难道仅仅是因为用了string而不是数组?如果时间限制这么严格倒是说一下啊,还以为算法有问题!#include#includeusing namespace std;void kmpNext(string pattern, i... 阅读全文