摘要: 仍旧是裸的字符串匹配可以拿来熟悉下字符串匹配问题,我是用来熟悉KMP的。 阅读全文
posted @ 2016-07-30 19:59 LasNoire 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 字符串匹配模板题。KMP的话,我觉得算导上的讲解与证明很清晰,代码也很工整简洁,很好理解。 #include<iostream> #include<cstring> #include<cstdio> using namespace std; const int N = 1e6+5; const in 阅读全文
posted @ 2016-07-30 19:33 LasNoire 阅读(105) 评论(0) 推荐(0) 编辑