QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#188964 | #1. I/O Test | 5ab | 0 | 0ms | 0kb | C++20 | 823b | 2023-09-26 18:24:27 | 2023-09-26 18:24:28 |
config.txt
10000000 0
input_test
#include <iostream>
#include <cstring>
#include <limits>
using namespace std;
static constexpr size_t buf_size = 1 << 23;
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: 0
input_test Runtime Error
Test #1:
score: 0
input_test Runtime Error
input:
10000000 254628321 464063462 690681921 885164013 761215407 810172132 825952144 182056392 294655993 145035528 590067217 196536067 867023860 730780338 941087893 477109334 600317711 363269148 797683997 605255825 116480985 384123337 711718168 207470153 966220275 341750058 740135800 897546890 655710238 1...
output:
result:
Subtask #2:
score: 0
Skipped