QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#120278 | #1. I/O Test | zhicheng | 200 ✓ | 233ms | 3512kb | C++14 | 634b | 2023-07-06 16:12:21 | 2023-07-06 16:12:25 |
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=1e8;
scanf("%d",&n);
for(int i=1;i<=n;i++){
write(a);
putchar(' ');
}
}
詳細信息
Subtask #1:
score: 100
Accepted
Test #1:
score: 100
Accepted
time: 195ms
memory: 3512kb
input:
10000000 363803640 119837431 692956749 763672478 127441698 103696319 502443229 369094332 691602011 455294461 124642893 513365874 870041902 660900826 967946830 912375749 419718783 501234538 454388603 691202672 907437572 744500320 321945641 209348494 859938332 990953178 237116115 889591647 128328500 2...
output:
5500823417598786
result:
points 1.0 input test passed
Subtask #2:
score: 100
Accepted
Test #2:
score: 100
Accepted
time: 233ms
memory: 3404kb
input:
10000000
output:
100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 ...
result:
points 1.0 output test passed