![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
树套树
文章平均质量分 80
zhhx2001
这个作者很懒,什么都没留下…
展开
-
二逼平衡树(树套树)
树套树编程技巧。 1.tmp,这个答案的中间变量,便于解题。 2.用splay结构体来写树套树。 #include #include #include #include #include using namespace std; const int N=60005; const int inf=0x3f3f3f3f; int n,m,tmp; int c[N];原创 2016-09-07 20:09:05 · 633 阅读 · 0 评论 -
bzoj1901(动态区间第k大,树套树)
表示主席树+树状数组懒得打了,学了树套树水过。。。 线段树套平衡树 #include #include #include #include #include using namespace std; const int N=12005; const int inf=0x3f3f3f3f; int n,m,tmp; int c[N]; inline int read()原创 2016-09-08 18:46:22 · 562 阅读 · 0 评论