摘要: P1019 单词接龙 #include <bits/stdc++.h> using namespace std; int n; string s[25]; int vis[25]; char ch; int mc[25][25];//重叠的最小部分 int an;//每次搜到的当前最长长串 int 阅读全文
posted @ 2020-02-11 19:19 Hazelxcf 阅读(139) 评论(0) 推荐(0)
摘要: KMP https://blog.csdn.net/v_july_v/article/details/7041827 P3375 【模板】KMP字符串匹配 1 #include <bits/stdc++.h> 2 3 using namespace std; 4 const int maxn = 1 阅读全文
posted @ 2020-02-11 10:21 Hazelxcf 阅读(135) 评论(0) 推荐(0)