摘要: #include using namespace std; const int maxn=1e5+4; int n,rt,pool=0; struct node{ int lc,rc,fa,size,key,pri,cnt; }a[maxn]; inline void zig(int &k){ int y=a[k].lc; a[k].lc=a[y].rc; a[y... 阅读全文
posted @ 2018-12-18 00:24 WiFiMonster 阅读(125) 评论(0) 推荐(0) 编辑