摘要: 做完这个题我知道什么叫做水体了#include#include#includeusing namespace std;int a[10000];int main(){ int i; int n; cin>>n; for(i=0;i<n;i++) scanf("%... 阅读全文
posted @ 2014-06-14 17:22 _一千零一夜 阅读(116) 评论(0) 推荐(0) 编辑
摘要: 题意:找n 个字符串中最长的公共子川 若存在多个最常的则输出 字典序最小的思路:kmp 擦 本来没难度 结果因为字典序 错过了n次#include#include#includeusing namespace std;char str[22][66];int next[66];int L;char ... 阅读全文
posted @ 2014-06-14 17:11 _一千零一夜 阅读(162) 评论(0) 推荐(0) 编辑