摘要: #include<bits/stdc++.h> using namespace std; typedef long long ll; const ll N=1e7+10; struct node{ll ls,rs,fa,pri;}t[N]; ll n; int main(){ ios::sync_w 阅读全文
posted @ 2024-01-06 22:36 Alric 阅读(6) 评论(0) 推荐(0) 编辑
摘要: 普通平衡树 #include<bits/stdc++.h> using namespace std; typedef long long ll; const ll N=1e5+10; ll root,tot; struct node{ll ls,rs,val,pri,sz;}t[N]; void p 阅读全文
posted @ 2024-01-06 14:44 Alric 阅读(2) 评论(0) 推荐(0) 编辑