QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#55448#1. I/O Testjames1BadCreeper200 ✓402ms1776kbC++20579b2022-10-13 19:43:032022-10-13 19:43:06

Judging History

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

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2022-10-13 19:43:06]
  • 评测
  • 测评结果:200
  • 用时:402ms
  • 内存:1776kb
  • [2022-10-13 19:43:03]
  • 提交

config.txt

10000000 10000000

input_test

#include <cstdio>
#pragma GCC optimize("Ofast")

inline void read(int &x)
{
	int c = getchar(); x = 0;
	while (c < '0' || c > '9') c = getchar();
	while (c >= '0' && c <= '9') x = (x << 3) + (x << 1) + (c ^ 48), c = getchar();
}

int main(void)
{
	int n;
	read(n);
	int x;
	long long ans = 0;
	while (n--)
	{
		read(x);
		ans += x;
	}
	printf("%lld\n", ans);
	return 0;
}

output_test

#include <cstdio>
#pragma GCC optimize("Ofast")

int main(void)
{
	int n;
	scanf("%d", &n);
	while (n--)
		printf("100000000 ");
	putchar('\n');
	return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 100
Accepted

Test #1:

score: 100
Accepted
time: 402ms
memory: 1776kb

input:

10000000
660792800 163064363 658790210 993857957 844210000 510030742 663281015 825739200 833070948 450526570 473632457 201087972 152937759 197322275 810253532 701116537 446147009 237939615 967645829 492535266 669418297 878124926 723267551 798509094 777983798 229922524 363188510 109658336 273460354 5...

output:

5501527744895347

result:

points 1.0 input test passed

Subtask #2:

score: 100
Accepted

Test #2:

score: 100
Accepted
time: 334ms
memory: 1772kb

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