版本比较
solution-p3988
正文
增加 2 行删除 2 行
13 行未改动1415161718181920212218 行未改动414243444545464748495 行未改动13 行未改动 int t=0; char ch=getchar(); while (ch<'0' || ch>'9') ch=getchar(); while (ch>='0' && ch<='9') t=t*10+ch-'0',ch=getchar(); return t; return t;}int main(){ n=read(); int block=(int)sqrt(2*n);18 行未改动 now=0; p=fir[t]; while (x){ p=nxt[p]; now++,x--; now++,x--; } printf("%d\n",p); nxt[pre[p]]=nxt[p]; pre[nxt[p]]=pre[p];5 行未改动