RT,一开始我查询排名的代码是:
if(order == 1)printf("%d\n",getrank(1,x));
样例过了,然后全WA。
后来我改成了
if(order == 1)printf("%d\n",getrank(1,x)+1);
样例没过,AC了?