QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#61907#1. I/O TestLXl491214200 ✓58ms101140kbC++23989b2022-11-15 21:29:532022-11-15 21:29:54

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:29:54]
  • 评测
  • 测评结果:200
  • 用时:58ms
  • 内存:101140kb
  • [2022-11-15 21:29:53]
  • 提交

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 (const char* const end_pout = buf + 10 * n; pout != end_pout; pout += 10)
	{
		*reinterpret_cast<unsigned*>(pout) = *reinterpret_cast<unsigned*>(pout + 4) = '1111';
		*reinterpret_cast<unsigned*>(pout + 8) = ' 0';
	}
	cout.write(buf, static_cast<size_t>(10 * n));
	return 0;
}

詳細信息

Subtask #1:

score: 100
Accepted

Test #1:

score: 100
Accepted
time: 58ms
memory: 101140kb

input:

10000000
782323058 259319948 878142989 284454208 915592539 566972501 171096419 320947514 787903075 911347987 721157454 691869050 804768529 882829113 292425765 996027698 388409984 262926204 979525069 615018750 470278453 317097328 793948542 971036284 605818061 386427330 249053799 335383938 122957225 5...

output:

5500425713918983

result:

points 1.0 input test passed

Subtask #2:

score: 100
Accepted

Test #2:

score: 100
Accepted
time: 8ms
memory: 100904kb

input:

10000000

output:

111111110 111111110 111111110 111111110 111111110 111111110 111111110 111111110 111111110 111111110 111111110 111111110 111111110 111111110 111111110 111111110 111111110 111111110 111111110 111111110 111111110 111111110 111111110 111111110 111111110 111111110 111111110 111111110 111111110 111111110 ...

result:

points 1.0 output test passed