摘要:
#include#include#include#includeusing namespace std;const int maxn=100000+10;typedef long long ll;ll a[maxn];ll tree[maxn>1; build(h>1; tree[h]+=(w-q+... 阅读全文
摘要:
#include#include#include#includeusing namespace std;struct Trie{ int child[10000][26]; int val[10000]; int size; void init(){ memset(child[1],0,sizeo... 阅读全文