![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
主席树
black_miracle
这个作者很懒,什么都没留下…
展开
-
zstu 4239 主席树
巴比伦花园 Time Limit: 1 Sec Memory Limit: 128 MB Description 巴比伦花园在前6世纪由新巴比伦王国的尼布甲尼撒二世(Nebuchadnezzar)在巴比伦城为其患思乡病的王妃安美依迪丝(Amyitis)修建的。园中种植各种花草树木,远看犹如花园悬在半空中。当然这个伟大的奇迹现在已经不存在了,但幸运的是我们仍能从流传于后世的故事中窥看原创 2016-11-22 20:38:38 · 302 阅读 · 0 评论 -
主席树模板 区间第k小
#include #include #include #include using namespace std; int a[200010],b[200010],lc[2000005],rc[2000005],root[200005],sum[2000005],cnt=0; void add(int l,int r,int x,int &cur,int cur1){ cur=++cnt; lc原创 2016-11-22 20:41:06 · 337 阅读 · 0 评论 -
BZOJ 4756 主席树+dfs
Promotion Counting Time Limit: 10 Sec Memory Limit: 128 MB [Submit][Status][Discuss] Description The cows have once again tried to form a startup company, failing to remember from past experi原创 2017-03-06 15:23:38 · 282 阅读 · 0 评论