题目
https://www.luogu.org/problemnew/show/P3369
题意
splay的基本操作
题解
https://blog.csdn.net/qq_30974369/article/details/77587168
把链接中的模板拿来用就好,先插入INF和-INF作为边界,那模板功能不全,我又添加了MinTh函数和KTh函数
1 |
|
不恋过往,不畏挑战
https://www.luogu.org/problemnew/show/P3369
splay的基本操作
https://blog.csdn.net/qq_30974369/article/details/77587168
把链接中的模板拿来用就好,先插入INF和-INF作为边界,那模板功能不全,我又添加了MinTh函数和KTh函数
1 | #include <stdio.h> |