QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#220545#1. I/O TestRitaspon200 ✓273ms3680kbC++17756b2023-10-20 15:08:312023-10-20 15:08:33

Judging History

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

  • [2023-10-20 15:08:33]
  • 评测
  • 测评结果:200
  • 用时:273ms
  • 内存:3680kb
  • [2023-10-20 15:08:31]
  • 提交

config.txt

10000000 10000000

input_test

#include <bits/stdc++.h>
#define LL long long
using namespace std;
int n,x;
long long ans;
int qread()
{
	int res=0;
	char c;
	do
	{
		c = getchar();
	}
	while (c<48 || c>57);
	while (c>=48 && c<=57)
	{
		res = res*10+(c-48);
		c = getchar();
	}
	return res;
}
int main()
{
	n = qread();
	for (int i=1;i<=n;++i)
	{
		x = qread();
		ans += x;
	}
	printf("%lld\n",ans);
	return 0;
}

output_test

#include <bits/stdc++.h>
#define LL long long
using namespace std;
const int N=5000002;
int a[N],n;
void write(int n)
{
	if (n==0) return ;
        write(n/10);
	putchar((n%10)+48);
}
int main()
{
	scanf("%d",&n);
	for (int i=1;i<=n;++i)
	{
		write(100000000+i);
		putchar(32);
	}
	putchar(10);
	return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 100
Accepted

Test #1:

score: 100
Accepted
time: 209ms
memory: 3612kb

input:

10000000
577101841 155286292 621832423 443590790 660566473 766697185 288982226 474926142 867951014 642162554 487986067 712668344 751668831 922007837 649639706 197017308 686885907 938772612 175364340 573554160 660290743 897272838 307373392 522798090 905636974 277591183 282185805 304988810 787271297 2...

output:

5502050497994381

result:

points 1.0 input test passed

Subtask #2:

score: 100
Accepted

Test #2:

score: 100
Accepted
time: 273ms
memory: 3680kb

input:

10000000

output:

100000001 100000002 100000003 100000004 100000005 100000006 100000007 100000008 100000009 100000010 100000011 100000012 100000013 100000014 100000015 100000016 100000017 100000018 100000019 100000020 100000021 100000022 100000023 100000024 100000025 100000026 100000027 100000028 100000029 100000030 ...

result:

points 1.0 output test passed