QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#188996 | #1. I/O Test | 5ab | 200 ✓ | 219ms | 101208kb | C++20 | 1.3kb | 2023-09-26 18:39:35 | 2023-09-26 18:39:35 |
Judging History
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 <cstdio>
using namespace std;
constexpr int obuf = 1e8 + 1;
char buf[obuf + 1], *p = buf;
signed main()
{
int n = 1e7;
while (n--)
{
*p++ = '1';
*p++ = '1';
*p++ = '1';
*p++ = '1';
*p++ = '1';
*p++ = '1';
*p++ = '1';
*p++ = '1';
*p++ = '1';
*p++ = ' ';
}
fwrite(buf, 1, p - buf, stdout);
return 0;
}
// started coding at: 09-26 18:32:36
详细
Subtask #1:
score: 100
Accepted
Test #1:
score: 100
Accepted
time: 52ms
memory: 101208kb
input:
10000000 928625834 813665547 491262026 365904370 438042814 596973295 674324021 498988969 861132989 302533257 962242566 580734867 390197132 967475815 725750135 745681147 409578067 345812836 105146523 681238844 276253407 824452121 411049381 587400265 137349005 230205016 255807856 888545912 819477900 5...
output:
5500076111031716
result:
points 1.0 input test passed
Subtask #2:
score: 100
Accepted
Test #2:
score: 100
Accepted
time: 219ms
memory: 98956kb
input:
10000000
output:
111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 ...
result:
points 1.0 output test passed