QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#53881#1. I/O Testjames1BadCreeper200 ✓442ms1840kbC++17747b2022-10-06 10:02:182022-10-06 10:02:20

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-06 10:02:20]
  • 评测
  • 测评结果:200
  • 用时:442ms
  • 内存:1840kb
  • [2022-10-06 10:02:18]
  • 提交

config.txt

10000000 10000000

input_test

#include <cstdio>
#include <cctype>

int main(void)
{
	int n, c, x;
	long long ans = 0;
	scanf("%d", &n);
	while (n--)
	{
		c = getchar(); x = 0;
		while (!isdigit(c)) c = getchar_unlocked();
		while (isdigit(c)) x = (x << 3) + (x << 1) + (c ^ 48), c = getchar_unlocked();
		ans += x;
	}
	printf("%lld\n", ans);
	return 0;
}

output_test

#include <cstdio>

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

详细

Subtask #1:

score: 100
Accepted

Test #1:

score: 100
Accepted
time: 299ms
memory: 1808kb

input:

10000000
872862819 508137203 562537838 389501293 750492044 240104654 981287062 964880579 374023708 339133934 728856938 702179326 639066036 448654166 893750476 303767046 284013609 425743526 495645241 512857802 601198675 180906932 207378801 878734441 870582439 734323618 473296027 562869641 746599772 8...

output:

5499393319900919

result:

points 1.0 input test passed

Subtask #2:

score: 100
Accepted

Test #2:

score: 100
Accepted
time: 442ms
memory: 1840kb

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