QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#36687 | #1. I/O Test | D_F_S | 200 ✓ | 425ms | 3544kb | C++ | 888b | 2022-06-28 14:23:10 | 2022-06-28 14:23:13 |
Judging History
config.txt
10000000 10000000
input_test
#include<bits/stdc++.h>
#define inl inline
using namespace std;
const int N=1e5+5;
int n;
long long ans;
inl int Read()
{
int s=0; char c; while(!isdigit(c=getchar()));
for(;isdigit(c);c=getchar()) s=s*10+c-'0'; return s;
}
inl void Write(long long x)
{
int c=0,s[20]; do s[++c]=x%10; while(x/=10);
while(c--) putchar(s[c+1]+'0'); putchar(' ');
}
int main()
{
for(n=Read();n--;) ans+=Read();
Write(ans);
return 0;
}
output_test
#include<bits/stdc++.h>
#define inl inline
using namespace std;
const int N=1e5+5;
int n;
long long ans;
inl int Read()
{
int s=0; char c; while(!isdigit(c=getchar()));
for(;isdigit(c);c=getchar()) s=s*10+c-'0'; return s;
}
inl void Write(int x)
{
int c=0,s[10]; do s[++c]=x%10; while(x/=10);
while(c--) putchar(s[c+1]+'0'); putchar(' ');
}
int main()
{
for(n=Read();n--;) Write(100000000);
return 0;
}
詳細信息
Subtask #1:
score: 100
Accepted
Test #1:
score: 100
Accepted
time: 425ms
memory: 3500kb
input:
10000000 546729102 496339310 445348938 310051148 459455339 736881814 975540925 211951200 266735081 882745881 523178581 129752078 144507549 573817376 876784714 274879809 980670652 520295730 439774692 545315307 140306077 921814451 105341655 607829396 544170685 348298402 665134699 286570018 743016060 1...
output:
5500076132183446
result:
points 1.0 input test passed
Subtask #2:
score: 100
Accepted
Test #2:
score: 100
Accepted
time: 361ms
memory: 3544kb
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