摘要: ```c #include using namespace std; const int N = 100005; int rt, tot, fa[N], ch[N][2], val[N], cnt[N], sz[N]; void maintain(int x) { sz[x] = sz[ch[x][0]] + sz[ch[x][1]] + cnt[x]; } bool get(int x) { r 阅读全文
posted @ 2020-04-24 08:09 Suiyue_Li 阅读(174) 评论(0) 推荐(0) 编辑