摘要: 1. 查询前驱,后继,排名 splay基本操作 #include <cstdio> const int N = 1e6+10, INF = 0x3f3f3f3f; int tot, rt; struct { int cnt,sz,fa,ch[2],v; } tr[N]; void pu(int x) 阅读全文
posted @ 2020-10-10 15:16 dz8gk0j 阅读(167) 评论(0) 推荐(0)