为何查询 xxx 的排名这样写会死循环?
int find_key(int x){ int ret=0,now=rt; while(1){ if(x<num[now]){ now=son[now][0]; }else{ if(son[now][0]>=1){ ret+=sz[son[now][0]]; }if(x==num[now]){ Splay(now); return ret+1; }ret+=cnt[now]; now=son[now][1]; } } }