08 2017 档案
字典树模板
摘要:1 struct Trie 2 { 3 const static int maxsig=26; 4 const static int maxn=500000; 5 struct node 6 { 7 int next[maxsig]; 8 int cnt; 9 }Trienode[maxn]; 10 ...
阅读全文
01矩阵乘法模板
摘要:1 int n; 2 struct matrix 3 { 4 bitsetv[303],h[303],temp; 5 matrix() 6 { 7 for(int i=1;i<=n;i++) 8 v[i].reset(),h[i].reset(); 9 temp.reset(); 10 } ...
阅读全文
线段树 (区间查询最大 区间求和 区间加)带lazy
摘要:1 const int N=1e5+2; 2 3 struct Segment_tree 4 { 5 struct Node 6 { 7 int val,Max,lazy; 8 int Size,son[2]; 9 void init() 10 { 11 ...
阅读全文
浙公网安备 33010602011771号