网站首页
编程语言
数据库
系统相关
其他分享
编程问答
P3850
2024-10-22
洛谷P3850 [TJOI2007] 书架 splay tree 模板题
题目链接:https://www.luogu.com.cn/problem/P3850主要操作就是:插入+查询第k值。示例程序:#include<bits/stdc++.h>usingnamespacestd;constintmaxn=1.1e5+5,maxb=20;structNode{ints[2],p,sz;stringname;Node(){}Node(string_n