QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#188979#1. I/O Test5ab110 50ms101084kbC++201.3kb2023-09-26 18:32:562023-09-26 18:32:57

Judging History

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

  • [2023-09-26 18:32:57]
  • 评测
  • 测评结果:110
  • 用时:50ms
  • 内存:101084kb
  • [2023-09-26 18:32:56]
  • 提交

config.txt

10000000 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

/* 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: 50ms
memory: 101084kb

input:

10000000
796623263 700096632 952688783 415278780 875067138 113226619 421747075 671007141 512011908 982464764 456674330 211351335 395115053 653912397 152335807 878743980 330651234 998013951 147102112 915316790 747354432 979308611 590188910 295711414 740786635 306541381 844728269 349316853 329323802 9...

output:

5498829408274616

result:

points 1.0 input test passed

Subtask #2:

score: 10
Acceptable Answer

Test #2:

score: 10
Acceptable Answer
time: 45ms
memory: 3568kb

input:

1000000

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 0.10 output test passed