在翻转区间 [l,r][l,r][l,r] 的时候要定义 L=kth(l-1),R=kth(r+1),然后再 splay。但是 kth() 函数不是根据排名求值吗,splay传入的是节点编号,求问为什么?
L=kth(l-1),R=kth(r+1)
kth()