QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#61904#1. I/O TestLXl491214100 53ms101040kbC++23936b2022-11-15 21:25:192022-11-15 21:25:19

Judging History

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

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2022-11-15 21:25:19]
  • 评测
  • 测评结果:100
  • 用时:53ms
  • 内存:101040kb
  • [2022-11-15 21:25:19]
  • 提交

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, 134217728);
	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) = '1000', *reinterpret_cast<unsigned*>(pout + 4) = '0000', *reinterpret_cast<unsigned*>(pout + 8) = '0\n', pout += 10, ++i);
	cout.write(buf, pout - buf);
	return 0;
}

详细

Subtask #1:

score: 100
Accepted

Test #1:

score: 100
Accepted
time: 53ms
memory: 100920kb

input:

10000000
698657675 935911028 738612694 986638137 283548032 167338535 730908360 150706891 394031019 417371278 487612963 350911393 764761774 857113194 315908561 668157671 981007691 462483312 851957133 849424857 728540081 721198204 150127053 207535823 656931141 189897812 317281455 816141367 288927426 8...

output:

5500374670618549

result:

points 1.0 input test passed

Subtask #2:

score: 0
Wrong Answer

Test #2:

score: 0
Wrong Answer
time: 15ms
memory: 101040kb

input:

10000000

output:

00010000
000010000
000010000
000010000
000010000
000010000
000010000
000010000
000010000
000010000
000010000
000010000
000010000
000010000
000010000
000010000
000010000
000010000
000010000
000010000
000010000
000010000
000010000
000010000
000010000
000010000
000010000
000010000
000010000
000010000
0...

result:

wrong output format Expected integer, but "00010000" found