QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#50760#1. I/O Testiee200 ✓219ms4764kbC++14919b2022-09-29 10:16:462022-09-29 10:16:47

Judging History

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

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2022-09-29 10:16:47]
  • 评测
  • 测评结果:200
  • 用时:219ms
  • 内存:4764kb
  • [2022-09-29 10:16:46]
  • 提交

config.txt

10000000 10000000

input_test

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
char buf[(1 << 20) + 1], *p1 = buf, *p2 = buf;
char gc() {
	if (p1 == p2) {
		p1 = buf;
		p2 = buf + fread(buf, 1, 1 << 20, stdin);
	}
	return *p1++;
}
int read() {
	int x = 0, c = gc();
	while (!isdigit(c)) c = gc();
	while (isdigit(c)) x = x * 10 + (c - '0'), c = gc();
	return x;
}
int main() {
	int N = read();
	ll sum = 0;
	for (int i = 1; i <= N; ++i) sum += read();
	printf("%lld", sum);
	return 0;
}

output_test

#include <bits/stdc++.h>
using namespace std;
char buf[(1 << 20)], *p = buf;
void pc(char x) {
	if (p - buf < (1 << 20)) *p++ = x;
	else fwrite(buf, 1, p - buf, stdout), p = buf, *p++ = x;
}
void print(int x) {
	if (x > 9) print(x / 10);
	pc(x % 10 + '0');
}
int main() {
	int N;
	scanf("%d", &N);
	while (N--)
		print(999999999), pc(' ');
	fwrite(buf, 1, p - buf, stdout);
	return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 100
Accepted

Test #1:

score: 100
Accepted
time: 121ms
memory: 4764kb

input:

10000000
413213339 998511065 432546170 814717322 730372506 162349354 687554629 681062602 992893614 702956727 574436869 286265064 305990660 852626637 359652766 140133763 480554919 618992946 139621347 999011818 447207959 862759458 836589811 702015369 990853085 689062809 716365124 992641713 356094206 6...

output:

5500227737078553

result:

points 1.0 input test passed

Subtask #2:

score: 100
Accepted

Test #2:

score: 100
Accepted
time: 219ms
memory: 4592kb

input:

10000000

output:

999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 ...

result:

points 1.0 output test passed