QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#188964#1. I/O Test5ab0 0ms0kbC++20823b2023-09-26 18:24:272023-09-26 18:24:28

Judging History

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

  • [2023-09-26 18:24:28]
  • 评测
  • 测评结果:0
  • 用时:0ms
  • 内存:0kb
  • [2023-09-26 18:24:27]
  • 提交

config.txt

10000000 0

input_test

#include <iostream>
#include <cstring>
#include <limits>
using namespace std;

static constexpr size_t buf_size = 1 << 23;

static char inbuf[buf_size + 1] = {};

namespace {
char *pos, *end;

void load() {
	pos = inbuf;
	end = inbuf + cin.readsome(inbuf, buf_size);
	*end = '\0';
}
inline char get_next() { return *(pos++); }

template<class T>
void scan(T &x) {
	char c = get_next();
	// bool neg = false;
	// if (c == '-')
	// 	neg = true, x = 0;
	// else
		x = c & 15;
	while ((c = get_next()) >= '0')
		x = x * 10 + (c & 15);
	// if (neg)
	// 	x = -x;
}
}

int main()
{
	cin.tie(0)->sync_with_stdio(0);
	
	int x = 1e7;
	long long res = 0, y;
	
	load();
	scan(x);
	while (x--)
	{
		scan(y);
		res += y;
		// res ^= y;
	}
	cout << res << "\n";
	
	return 0;
}

output_test


详细

Subtask #1:

score: 0
input_test Runtime Error

Test #1:

score: 0
input_test Runtime Error

input:

10000000
254628321 464063462 690681921 885164013 761215407 810172132 825952144 182056392 294655993 145035528 590067217 196536067 867023860 730780338 941087893 477109334 600317711 363269148 797683997 605255825 116480985 384123337 711718168 207470153 966220275 341750058 740135800 897546890 655710238 1...

output:


result:


Subtask #2:

score: 0
Skipped