摘要: #include#include#include#include#include#includeusing namespace std;const int root=0;int tot;struct node{ int cnt; int next[26]; void newnode... 阅读全文
posted @ 2015-05-02 01:29 BYYB_0506 阅读(201) 评论(0) 推荐(0) 编辑
摘要: // hdu2222 //#include#include#include#include#include#include#includeusing namespace std;char k[55],s[1000005];struct node{ int fail; int next[2... 阅读全文
posted @ 2015-05-02 01:28 BYYB_0506 阅读(113) 评论(0) 推荐(0) 编辑
摘要: // codeforces 471D //#include#include#include#include#include#includeusing namespace std;int n,w;int a[200005],b[200005];int da[200005],db[200005];int... 阅读全文
posted @ 2015-05-02 01:27 BYYB_0506 阅读(229) 评论(0) 推荐(0) 编辑