link
下面的一段死循环了
int find_key(int x){ int ret=0,now=rt; while(1){ if(x<num[now]){ now=son[now][0]; }else{ ret+=sz[son[now][0]]; if(x==num[now]){ Splay(now); return ret+1; }ret+=cnt[now]; now=son[now][1]; } } }