QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#32207#1. I/O TestQingyu200 ✓99ms101248kbC++23856b2022-05-18 01:06:462022-05-18 01:06:49

Judging History

你现在查看的是测评时间为 2022-05-18 01:06:49 的历史记录

  • [2023-09-11 15:16:43]
  • 管理员手动重测该提交记录
  • 测评结果:200
  • 用时:63ms
  • 内存:102088kb
  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2022-05-18 01:06:49]
  • 评测
  • 测评结果:200
  • 用时:99ms
  • 内存:101248kb
  • [2022-05-18 01:06:46]
  • 提交

config.txt

10000000
10000000

input_test

#include <bits/stdc++.h> 
template <int T>
struct fast_io {
	char p[T], *p1, *p2;
	fast_io() {
		p1 = p2 = p;
		fread(p, 1, T, stdin);	
	}
	char gc() {
		return *p1++;
	}

};
fast_io<110'000'000> io;
int read() {
	int r = 0, neg = 1;
	char ch;
	do ch = io.gc();while (ch < 48 || ch > 57);
	do r = r * 10 + ch - 48, ch = io.gc(); while (ch >= 48 && ch <= 57);
	return r;
}

int main() {
	read();
	long long sum = 0;
	for (int i = 0; i < 10'000'000; ++i)
		sum += read();
	std::cout << sum;
}


output_test

#include <bits/stdc++.h>

char s[100'000'000];
int main() {
	int n, x;
	long long sum = 0;
	int p=0;
	for (int i = 0; i < 10'000'000; ++i) {
		s[p++]=49;s[p++]=49;
		s[p++]=49;
		s[p++]=49;
		s[p++]=49;
		s[p++]=49;
		s[p++]=49;
		s[p++]=49;
		s[p++]=49;
		s[p++]='\n';
	}
	fwrite(s,1,p,stdout);
}

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 100
Accepted

Test #1:

score: 100
Accepted
time: 99ms
memory: 101248kb

input:

10000000
145165236 681759182 796044185 921474046 391492601 181665817 932527299 688679738 228113422 158012663 939885020 237878533 390262327 908020228 667180583 764127570 728037664 177455323 567624658 134279864 304367469 907350040 306945085 294843150 654085861 636035650 167706587 810701619 670415164 2...

output:

5500591680863473

result:

points 1.0 input test passed

Subtask #2:

score: 100
Accepted

Test #2:

score: 100
Accepted
time: 12ms
memory: 101236kb

input:

10000000

output:

111111111
111111111
111111111
111111111
111111111
111111111
111111111
111111111
111111111
111111111
111111111
111111111
111111111
111111111
111111111
111111111
111111111
111111111
111111111
111111111
111111111
111111111
111111111
111111111
111111111
111111111
111111111
111111111
111111111
111111111
...

result:

points 1.0 output test passed