题目链接 平衡树基础题,用于测试各种平衡树的性能(雾) treap: #include<bits/stdc++.h> typedef long long ll; using namespace std; struct Treap { ; )%0x7fffffff; return seed=seed*48271ll%0x7fffffff;} ],siz[N],val[N],fa[N],tot,rd[N]; ]==u;} ]=ch[][]=ch[][]=siz[]=val[]=rd[]=;} in…