QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#53882#1. I/O Testjames1BadCreeper200 ✓380ms1764kbC11750b2022-10-06 10:03:072022-10-06 10:03:09

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:03:09]
  • 评测
  • 测评结果:200
  • 用时:380ms
  • 内存:1764kb
  • [2022-10-06 10:03:07]
  • 提交

config.txt

10000000 10000000

input_test

#include <stdio.h>
#include <ctype.h>

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 <stdio.h>

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: 375ms
memory: 1764kb

input:

10000000
845864219 480740986 410571067 781114525 305445428 889148477 554867903 814332991 711659067 675806188 455959089 395269229 293266630 463616720 200001328 232507793 161332564 806244948 366723067 843625334 708902033 807597225 280913503 467429472 212018765 201677634 558603620 209920090 724868637 2...

output:

5499373705774810

result:

points 1.0 input test passed

Subtask #2:

score: 100
Accepted

Test #2:

score: 100
Accepted
time: 380ms
memory: 1720kb

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