QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#188966#1. I/O Test5ab100 56ms101104kbC++20825b2023-09-26 18:25:072023-09-26 18:25:07

Judging History

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

  • [2023-09-26 18:25:07]
  • 评测
  • 测评结果:100
  • 用时:56ms
  • 内存:101104kb
  • [2023-09-26 18:25:07]
  • 提交

config.txt

10000000 0

input_test

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

static constexpr size_t buf_size = 134217728;

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


Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 100
Accepted

Test #1:

score: 100
Accepted
time: 56ms
memory: 101104kb

input:

10000000
500805041 820443231 514058730 240851162 546554071 448368699 507194581 823599582 525293532 547164911 644534240 331323781 832020706 657840142 916203079 987377761 560437186 903960292 531633444 972561009 150131984 638873518 603090625 881997105 830963614 492148106 839947980 881088049 248677063 9...

output:

5499686514793557

result:

points 1.0 input test passed

Subtask #2:

score: 0
Skipped