摘要: trie+贪心 #include<bits/stdc++.h> using namespace std; const int N=1e5+10; int a[35],ch[N*35][2],sum[N*35],rt=1,sz=1,temp; int query(){ int k=rt; for(in 阅读全文
posted @ 2018-12-24 13:41 lqsno1 阅读(73) 评论(0) 推荐(0) 编辑
摘要: 字符串hash,注意hash是关键字! #include<bits/stdc++.h> using namespace std; typedef unsigned long long ull; const int N=1000005; const ull k=10007; char a[N]; ul 阅读全文
posted @ 2018-12-24 13:30 lqsno1 阅读(63) 评论(0) 推荐(0) 编辑