QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#333903#1. I/O TestNOI_AK_ME100 56ms101288kbC++23949b2024-02-20 19:12:512024-02-20 19:12:51

Judging History

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

  • [2024-02-20 19:12:51]
  • 评测
  • 测评结果:100
  • 用时:56ms
  • 内存:101288kb
  • [2024-02-20 19:12:51]
  • 提交

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);
	fread(buf, 1, 100000000, stdin);
	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;
}

详细

Subtask #1:

score: 0
Wrong Answer

Test #1:

score: 0
Wrong Answer
time: 56ms
memory: 101288kb

input:

10000000
268779297 531721267 769090861 281581083 522448830 258652988 728262036 341093498 485537961 598979223 174552393 644914855 100633410 975542262 716258290 889412771 960885618 151505901 230897454 741579700 716422244 518373647 367594992 795547969 363374265 782854947 529853129 324619721 990742846 1...

output:

5499971878648355

result:

wrong answer expected 5499972342135474, found 5499971878648355

Subtask #2:

score: 100
Accepted

Test #2:

score: 100
Accepted
time: 7ms
memory: 101176kb

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