【模板】splay
放一个一知半解的抄的板子
#pragma GCC optimize(2)
#include<bits/stdc++.h>
using namespace std;
const int maxn = 5e5+5;
int Case = 1;
struct node{
int ch[2];
int fa, val, cnt, size;
}tr[maxn];
int root, tot...
原创
2019-01-20 23:11:58 ·
148 阅读 ·
0 评论