返回顶部

05 2023 档案

摘要:splay #include <bits/stdc++.h> using namespace std; const int N = 5e6 + 10; int val[N], cnt[N], fa[N], ch[N][2], siz[N]; int tot, root; void maintain( 阅读全文
posted @ 2023-05-06 17:26 _Kolibri 阅读(24) 评论(0) 推荐(0)
摘要:有旋Treap模板 //pointer version #include <bits/stdc++.h> using namespace std; struct Node { Node *ch[2]; int val, rank; int rep_cnt; int siz; Node(int val 阅读全文
posted @ 2023-05-05 14:21 _Kolibri 阅读(35) 评论(0) 推荐(0)