QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#61355 | #1. I/O Test | Minion | 200 ✓ | 71ms | 100104kb | C++23 | 999b | 2022-11-12 15:05:30 | 2022-11-12 15:05:39 |
Judging History
config.txt
10000000 10000000
input_test
#include<cstdio>
#define fo(i,x,y) for(int i = x;i <= y;++i)
#define fd(i,x,y) for(int i = x;i >= y;--i)
#define _is 1048576 * 100
#define gc() ib[++bi]
using namespace std;
char ib[_is];int bi = -1;
int rd()
{
int x = 0,sig = 0;char ch = gc();
while(ch < 48 || ch > 57) ch = gc();
while(ch >= 48 && ch <= 57) x = x * 10 + ch - 48,ch = gc();return x;
}
int n;long long ans;
int main()
{
fread(ib,1,_is,stdin);
n = rd();
fo(i,1,n) ans += rd();
printf("%lld\n",ans);
return 0;
}
output_test
#include<cstdio>
#define fo(i,x,y) for(int i = x;i <= y;++i)
#define fd(i,x,y) for(int i = x;i >= y;--i)
#define _os 1048576 * 100
#define pc(ch) ob[++bo] = ch
using namespace std;
char ob[_os];int bo = -1;
void pr(int x)
{
char ch[20];int w = -1;
if(x == 0) ch[++w] = 48;
while(x) ch[++w] = x % 10 + 48,x /= 10;
fd(i,w,0) pc(ch[i]);pc(' ');
}
int n;
int main()
{
scanf("%d",&n);
fo(i,1,n) pr(100000000);
fwrite(ob,1,bo + 1,stdout);
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Subtask #1:
score: 100
Accepted
Test #1:
score: 100
Accepted
time: 71ms
memory: 100104kb
input:
10000000 846562026 146901199 698198970 931183919 209833349 311777133 512512668 209945092 412731627 101891222 486759134 345571452 834382215 880368857 279178762 751598282 649276970 899662868 523931212 623290417 397139862 659606668 815773944 510179353 251912920 855070932 339913743 268832246 980050161 1...
output:
5499830427119542
result:
points 1.0 input test passed
Subtask #2:
score: 100
Accepted
Test #2:
score: 100
Accepted
time: 38ms
memory: 99724kb
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