QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#188981#1. I/O Test5ab200 ✓394ms101104kbC++201.3kb2023-09-26 18:33:122023-09-26 18:33:13

Judging History

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

  • [2023-09-26 18:33:13]
  • 评测
  • 测评结果:200
  • 用时:394ms
  • 内存:101104kb
  • [2023-09-26 18:33:12]
  • 提交

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 <iostream>
using namespace std;

#define all(x) (x).begin(), (x).end()
#define ssz(x) (int((x).size()))

auto chmax = [](auto& x, auto y) { if (x < y) x = y; };
auto chmin = [](auto& x, auto y) { if (y < x) x = y; };

using ll = long long;

signed main()
{
	ios_base::sync_with_stdio(false);
	cin.tie(nullptr);
	
	int n;
	
	cin >> n;
	for (int i = 0; i < n; i++)
		cout << int(1e8) << " ";
	
	return 0;
}
// started coding at: 09-26 18:32:36

详细

Subtask #1:

score: 100
Accepted

Test #1:

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

input:

10000000
369877458 350439640 655791957 301031495 659821067 164174591 373187844 628328445 472862536 162670977 806172759 477137037 150968968 569196679 619754786 392055550 564089688 358537465 591699871 718278308 266257737 479612679 583611226 267697331 236820912 573911162 825581851 754508495 151449240 7...

output:

5500673471644656

result:

points 1.0 input test passed

Subtask #2:

score: 100
Accepted

Test #2:

score: 100
Accepted
time: 394ms
memory: 3448kb

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