QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#53880#1. I/O Testjames1BadCreeper200 ✓372ms3744kbC++17737b2022-10-06 09:58:322022-10-06 09:58:35

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 09:58:35]
  • 评测
  • 测评结果:200
  • 用时:372ms
  • 内存:3744kb
  • [2022-10-06 09:58:32]
  • 提交

config.txt

10000000 10000000

input_test

#include <iostream>
#include <cstdio>

using namespace std;

int n;

inline void read(int &x)
{
	int c = getchar(); x = 0;
	while (!isdigit(c)) c = getchar();
	while (isdigit(c)) x = (x << 3) + (x << 1) + (c ^ 48), c = getchar();
}

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

output_test

#include <iostream>
#include <cstdio>

using namespace std;

int main(void)
{
	int n;
	cin >> n;
	while (n--)
	{
		putchar('1');
		putchar('0');
		putchar('0');
		putchar('0');
		putchar('0');
		putchar('0');
		putchar('0');
		putchar('0');
		putchar('0');
		putchar(' ');
	}
	putchar('\n');
	return 0;
}

詳細信息

Subtask #1:

score: 100
Accepted

Test #1:

score: 100
Accepted
time: 372ms
memory: 3744kb

input:

10000000
647694818 759603950 721587919 487819020 575292788 409799975 567159617 781624280 677673922 909406774 754547121 582859891 415867681 796571537 874978151 116243996 859700340 855155893 991570727 149274678 921578897 250999741 206904391 792210388 411439948 205468018 806093418 769918703 732542314 9...

output:

5501230661049036

result:

points 1.0 input test passed

Subtask #2:

score: 100
Accepted

Test #2:

score: 100
Accepted
time: 319ms
memory: 3596kb

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