QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#117506 | #1. I/O Test | icyM1voya | 99.99999 | 87ms | 3592kb | C++14 | 753b | 2023-07-01 14:41:08 | 2023-07-01 14:41:10 |
Judging History
config.txt
9999999 9999999
input_test
#include<bits/stdc++.h>
#define gc (l==r&&(r=(l=c)+fread(c,1,65536,stdin),l==r)?EOF:*l++)
char c[65536],*l=c,*r=c;
inline int read() {
int x=0; char ch=gc;
while (!isdigit(ch)) ch=gc;
while (isdigit(ch)) x=x*10+(ch^48),ch=gc;
return x;
}
int main() {
int n=read(); long long s=0;
while (n--) s+=read();
printf("%lld",s);
return 0;
}
output_test
#include<cstdio>
int n,p1=-1,p2,num[12]; char cw[65536];
inline void write(int x) {
if (p1>65516) fwrite(cw,1,p1+1,stdout),p1=-1;
do num[++p2]=x%10; while (x/=10);
do cw[++p1]=num[p2]|48; while (--p2);
cw[++p1]=' ';
}
int main() {
scanf("%d",&n);
while (n--) write(10000000);
return fwrite(cw,1,p1+1,stdout),0;
}
詳細信息
Subtask #1:
score: 100
Acceptable Answer
Test #1:
score: 100
Acceptable Answer
time: 87ms
memory: 3592kb
input:
9999999 441435689 993365977 589058607 418361276 661032013 644465066 403997938 133983795 326061210 816558787 350527353 820042087 881553091 210891595 832829947 189689396 456685809 610008714 987062333 959903619 743402732 351650241 397471033 828382448 224864448 167974350 777223759 123031610 280326634 32...
output:
5498794708971897
result:
points 0.99999990 input test passed
Subtask #2:
score: 0
Wrong Answer
Test #2:
score: 0
Wrong Answer
time: 53ms
memory: 1692kb
input:
9999999
output:
10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 100...
result:
wrong answer Integer 10000000 violates the range [10^8, 999999999]