QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#130832#1. I/O TestLi_Feiy1 2ms4372kbC++14799b2023-07-25 11:55:352023-07-25 11:55:38

Judging History

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

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2023-07-25 11:55:38]
  • 评测
  • 测评结果:1
  • 用时:2ms
  • 内存:4372kb
  • [2023-07-25 11:55:35]
  • 提交

config.txt

100000 100000

input_test

#include<bits/stdc++.h>
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()
{
	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 tad[134217728], * pout = buf;
int main()
{
	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(tad, pout - tad);
	return 0;
}

详细

Subtask #1:

score: 1
Acceptable Answer

Test #1:

score: 1
Acceptable Answer
time: 2ms
memory: 4372kb

input:

100000
242347228 482842875 309441804 640039505 503037261 391403120 634924965 141116622 294620311 421869058 148280603 150286429 967738100 785985349 785093491 804060585 969514912 750011126 931038942 959866111 704645519 775430231 325573542 495026017 200239937 505894704 169427844 351624668 974958499 606...

output:

55070388007173

result:

points 0.010 input test passed

Subtask #2:

score: 0
output_test Judgement Failed

Test #2:

score: 0
output_test Judgement Failed

input:

100000

output:


result: