随笔分类 -  主席树

摘要:题意 description You are given an array a1,a2,...,an(∀i∈[1,n],1≤ai≤n). Initially, each element of the array is unique . Moreover, there are m instructio 阅读全文
posted @ 2019-08-28 10:07 阳离子 阅读(233) 评论(0) 推荐(0) 编辑
摘要:``` include include include int const maxn = 200010; using namespace std; int a[maxn], b[maxn]; //第几个版本的根节点编号 int root[maxn 1; build(lc[rt], l, mid); 阅读全文
posted @ 2019-08-28 08:53 阳离子 阅读(111) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示