QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#188985#1. I/O Test5ab200 ✓172ms101260kbC++201.1kb2023-09-26 18:35:062023-09-26 18:35:08

Judging History

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

  • [2023-09-26 18:35:08]
  • 评测
  • 测评结果:200
  • 用时:172ms
  • 内存:101260kb
  • [2023-09-26 18:35:06]
  • 提交

config.txt

10000000 10000000

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

/* name: out
 * author: 5ab
 * created at: 2023-09-26
 */
#include <cstdio>
using namespace std;

signed main()
{
	int n = 1e7;
	
	for (int i = 0; i < n; i++)
		printf("100000000 ");
	
	return 0;
}
// started coding at: 09-26 18:32:36

詳細信息

Subtask #1:

score: 100
Accepted

Test #1:

score: 100
Accepted
time: 59ms
memory: 101260kb

input:

10000000
130177517 514990958 152135367 485802537 341377040 453731550 706135290 502262082 316229013 983439601 914496767 473263924 235438643 532905724 543633422 757152254 812185985 637744824 576779033 104711953 817434682 636747902 993119473 759680825 730517177 790424742 426672426 945804237 394330588 1...

output:

5499888216673998

result:

points 1.0 input test passed

Subtask #2:

score: 100
Accepted

Test #2:

score: 100
Accepted
time: 172ms
memory: 1360kb

input:

10000000

output:

100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 ...

result:

points 1.0 output test passed