原本優化輸入
NA (score:5)
改scanf
AC (287ms, 494KB) 
優化輸入內加入 if (x>n) puts("what the ....?");
int input(){
char c=getchar();
while (c==' '||c=='\n') c=getchar();
int x=c-48;c=getchar();
while (c<='9'&&c>='0') {
x=x*10+c-48,c=getchar();
if (x>n)
puts("what the ....?");
}
return x;
}
您的答案為: what the ...略 正確答案為: 344
您的答案為: what the .. ...略 正確答案為: 976953
您的答案為: what the .. ...略 正確答案為: 788499
您的答案為: what the ... ...略 正確答案為: 1134353
您的答案為: 23 正確答案為: 441
您的答案為: what the .. ...略 正確答案為: 105857
您的答案為: what the .. ...略 正確答案為: 728644
您的答案為: what the .. ...略 正確答案為: 262190
您的答案為: what the . ...略
正確答案為: 22723
???
EOF XD
�