摘要: 很简单的字符串匹配,KMP以及它的一个简单优化。整理成板子。 1 #include<bits/stdc++.h> 2 #define f(i,a,b) for(int i=a;i<=b;i++) 3 using namespace std; 4 char s1[100005]; 5 char s2[ 阅读全文
posted @ 2020-01-31 11:42 Lovaer 阅读(162) 评论(0) 推荐(1) 编辑