QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#188961#1. I/O Test5ab0 0ms0kbC++20694b2023-09-26 18:20:302023-09-26 18:20:31

Judging History

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

  • [2023-09-26 18:20:31]
  • 评测
  • 测评结果:0
  • 用时:0ms
  • 内存:0kb
  • [2023-09-26 18:20:30]
  • 提交

config.txt

10000000 0

input_test

#include <cstdio>
#include <cstring>
#include <limits>
#include <sys/mman.h>
using namespace std;

static constexpr size_t buf_size = 134217728;
static constexpr size_t integer_size = 10;

char *inbuf;

inline void load() {
	inbuf = (char*) mmap(nullptr, 0x7000000, PROT_READ, MAP_PRIVATE, 0, 0);
	// inbuf[end] = '\0';
}
inline char get_next() { return *inbuf++; }
template<class T>
void scan(T &x) {
	char c = get_next();
    x = c - '0';
	while ((c = get_next()) >= '0')
		x = x * 10 + c - '0';
}

int main()
{
	int x = 1e7, y;
	ll res = 0;
	
	load();
	scan(x)
	while (x--)
	{
		scan(y);
		res += y;
	}
    printf("%lld", res);
	
	return 0;
}

output_test


详细

Subtask #1:

score: 0
input_test Judgement Failed

Test #1:

score: 0
input_test Judgement Failed

input:

10000000
114398997 810099943 159916263 286058658 269874666 692419562 423690991 951602199 757948989 960487274 855202864 624126156 745820525 154136496 487760690 289351778 507245760 827164338 231851263 919362248 106851102 163208677 212898878 427875150 232351970 966086636 497996572 543134669 103765268 4...

output:


result:


Subtask #2:

score: 0
Skipped