摘要: 好久没有写过KMP了,今天写个KMP练练手。此题就是枚举左端点暴力,用KMP做到O(n^2) 1 #include<cstdio> 2 #include<cstring> 3 using namespace std ; 4 5 const int MAXL = 15000 + 20 ; 6 7 ch 阅读全文
posted @ 2016-02-07 17:16 Chris_2 阅读(413) 评论(0) 推荐(0) 编辑