QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#333907#1. I/O TestNOI_AK_ME200 ✓55ms101288kbC++23942b2024-02-20 19:16:332024-02-20 19:16:33

Judging History

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

  • [2024-02-20 19:16:33]
  • 评测
  • 测评结果:200
  • 用时:55ms
  • 内存:101288kb
  • [2024-02-20 19:16:33]
  • 提交

config.txt

10000000 10000000

input_test

#include<iostream>
using namespace std;
char buf[134217728];
const char* pin = buf;
inline unsigned ReadU() { for (; *pin < '0'; ++pin); unsigned ans = *pin ^ '0'; for (; *(++pin) >= '0'; ans = ans * 10 + *pin - '0'); return ans; }
int main()
{
	ios::sync_with_stdio(false);
	cin.tie(nullptr);
	cout.tie(nullptr);
	cin.read(buf, 110000000);
	const unsigned n = ReadU();
	unsigned long long ans = 0;
	for (unsigned i = 1; i <= n; ans += ReadU(), ++i);
	cout << ans;
	return 0;
}

output_test

#include<iostream>
using namespace std;
char buf[134217728], * pout = buf;
int main()
{
	ios::sync_with_stdio(false);
	cin.tie(nullptr);
	cout.tie(nullptr);
	unsigned n;
	cin >> n;
	for (unsigned i = 1; i <= n; *reinterpret_cast<unsigned*>(pout) = '0001', *reinterpret_cast<unsigned*>(pout + 4) = '0000', *reinterpret_cast<unsigned short*>(pout + 8) = '\n0', pout += 10, ++i);
	cout.write(buf, pout - buf);
	return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 100
Accepted

Test #1:

score: 100
Accepted
time: 55ms
memory: 101196kb

input:

10000000
860234482 217202792 167754933 648303096 727989306 566115711 759932164 500692868 749590971 264412156 391763007 819895452 860746789 900720337 774315672 788363879 263721426 394896327 339259032 588478728 395687987 185166659 473975045 422027913 714146025 486086101 286757314 162757091 235869872 6...

output:

5499610945959667

result:

points 1.0 input test passed

Subtask #2:

score: 100
Accepted

Test #2:

score: 100
Accepted
time: 0ms
memory: 101288kb

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