QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#542947#1. I/O Testsun_vitamessage10 4ms98924kbC++141.2kb2024-09-01 11:28:302024-09-01 11:28:31

Judging History

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

  • [2024-09-01 11:28:31]
  • 评测
  • 测评结果:10
  • 用时:4ms
  • 内存:98924kb
  • [2024-09-01 11:28:30]
  • 提交

config.txt

1000000 1000000

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

#include <cstdio>
using namespace std;

constexpr int obuf = 1e8 + 1;

char s[obuf + 1];

signed main()
{
	int n = 1e7, p = 0;
	
	while (n--)
	{
		s[p++] = '1';
		s[p++] = '1';
		s[p++] = '1';
		s[p++] = '1';
		s[p++] = '1';
		s[p++] = '1';
		s[p++] = '1';
		s[p++] = '1';
		s[p++] = '1';
		s[p++] = ' ';
	}
	fwrite(s, 1, p, stdout);
	
	return 0;
}

詳細信息

Subtask #1:

score: 10
Acceptable Answer

Test #1:

score: 10
Acceptable Answer
time: 4ms
memory: 13836kb

input:

1000000
781083981 423750877 799881050 797953783 380772138 346903200 158997712 898404974 592916817 425542405 693261171 858901194 412407141 612171116 909203826 334068435 648568281 787111933 460279604 127472204 333967775 184387861 897050004 793144621 887392310 336802920 140513213 722551973 706617052 17...

output:

549704404509536

result:

points 0.10 input test passed

Subtask #2:

score: 0
Wrong Answer

Test #2:

score: 0
Wrong Answer
time: 3ms
memory: 98924kb

input:

1000000

output:

111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 ...

result:

wrong output format Extra information in the output file