#35168: 一定要用qsort也不是不行 但是要加io優化


jeremydingeric@gmail.com (164253)

學校 : 臺北市立成功高級中學
編號 : 158900
來源 : [182.234.181.208]
最後登入時間 :
2024-04-29 00:56:03
a233. 排序法~~~ 挑戰極限 -- 24TH 成功電研社內考 | From: [223.140.92.23] | 發表日期 : 2023-05-14 12:09

char buf[1<<25],*p1=buf,*p2=buf;

#define getchar() (p1==p2&&(p2=(p1=buf)+fread(buf,1,1<<25,stdin),p1==p2)?EOF:*p1++)

unsigned int i;

#define getint(i) for(i=0;c=getchar(),c!=EOF&&c!='\n'&&c!=' ';){i*=10;i+=c-'0';}

 
ZeroJudge Forum