在求前驱后继的 get_pre 和 get_suc 函数的后面一定要用 Splay(x,0) 把前驱/后继节点旋转到根,否则会 TLE on #6、#7!
get_pre
get_suc
Splay(x,0)