QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#120276 | #1. I/O Test | zhicheng | 100 | 206ms | 3636kb | C++14 | 634b | 2023-07-06 16:11:40 | 2023-07-06 16:11:42 |
Judging History
config.txt
10000000 10000000
input_test
#include<bits/stdc++.h>
using namespace std;
int read(){
int x=0,w=1;
char ch=0;
while(ch<'0'||ch>'9'){
if(ch=='-')w=-1;
ch=getchar();
}
while(ch>='0'&&ch<='9'){
x=x*10+(ch-'0');
ch=getchar();
}
return x*w;
}
int main(){
int n,a;
long long sum=0;
scanf("%d",&n);
for(int i=1;i<=n;i++){
a=read();
sum+=(long long)a;
}
printf("%lld",sum);
}
output_test
#include<bits/stdc++.h>
using namespace std;
void write(int x){
if(x>=10){
write(x/10);
}
putchar(x%10+'0');
}
int main(){
int n,a=1e7;
scanf("%d",&n);
for(int i=1;i<=n;i++){
write(a);
putchar(' ');
}
}
詳細信息
Subtask #1:
score: 100
Accepted
Test #1:
score: 100
Accepted
time: 206ms
memory: 3508kb
input:
10000000 932131082 985259938 389021283 284925214 224304957 392093125 139389410 230212293 529670058 496146136 686713810 357052418 235863465 898438303 359996368 920580530 132798800 688295208 472748903 891120129 105665355 897006253 980868274 362424730 520563980 640050106 452038776 379639380 622697944 3...
output:
5499060101099757
result:
points 1.0 input test passed
Subtask #2:
score: 0
Wrong Answer
Test #2:
score: 0
Wrong Answer
time: 178ms
memory: 3636kb
input:
10000000
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]