QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#188966 | #1. I/O Test | 5ab | 100 | 56ms | 101104kb | C++20 | 825b | 2023-09-26 18:25:07 | 2023-09-26 18:25:07 |
Judging History
config.txt
10000000 0
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
詳細信息
Subtask #1:
score: 100
Accepted
Test #1:
score: 100
Accepted
time: 56ms
memory: 101104kb
input:
10000000 500805041 820443231 514058730 240851162 546554071 448368699 507194581 823599582 525293532 547164911 644534240 331323781 832020706 657840142 916203079 987377761 560437186 903960292 531633444 972561009 150131984 638873518 603090625 881997105 830963614 492148106 839947980 881088049 248677063 9...
output:
5499686514793557
result:
points 1.0 input test passed
Subtask #2:
score: 0
Skipped