摘要: #include #include #include #define N 80010 #define which(x) (ls[fa[(x)]]==(x)) using namespace std; int id[N],pos[N],sz[N],ls[N],rs[N],fa[N],tot,n,m,root,a[N]; char op[233]; void pushup(int x) {sz[x]... 阅读全文
posted @ 2017-12-27 19:54 MSPqwq 阅读(143) 评论(0) 推荐(0) 编辑