QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#61355#1. I/O TestMinion200 ✓71ms100104kbC++23999b2022-11-12 15:05:302022-11-12 15:05:39

Judging History

你现在查看的是最新测评结果

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2022-11-12 15:05:39]
  • 评测
  • 测评结果:200
  • 用时:71ms
  • 内存:100104kb
  • [2022-11-12 15:05:30]
  • 提交

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