QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#189007 | #1. I/O Test | 5ab | 200 ✓ | 59ms | 101092kb | C++20 | 1.3kb | 2023-09-26 18:52:25 | 2023-09-26 18:52:26 |
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 {
int pos, end;
void load() {
end = cin.readsome(inbuf, buf_size);
inbuf[end] = '\0';
}
inline char get_next() { return inbuf[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, y;
long long res = 0;
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 s[obuf + 1];
signed main()
{
int n = 1e7, p = 0;
while (n--)
{
s[p++] = '1';
s[p++] = '1';
s[p++] = '1';
s[p++] = '1';
s[p++] = '1';
s[p++] = '1';
s[p++] = '1';
s[p++] = '1';
s[p++] = '1';
s[p++] = ' ';
}
fwrite(s, 1, p, stdout);
return 0;
}
// started coding at: 09-26 18:32:36
詳細信息
Subtask #1:
score: 100
Accepted
Test #1:
score: 100
Accepted
time: 59ms
memory: 101092kb
input:
10000000 153265374 824129032 563736198 290274941 366258749 211628550 987232712 583728713 694565740 512539579 329684526 375459473 930156409 441979873 564050547 498872902 843725704 185585067 170116233 922488899 548434883 143631218 513812814 970461298 374390855 877547319 526841213 113994150 785017954 9...
output:
5498739244038148
result:
points 1.0 input test passed
Subtask #2:
score: 100
Accepted
Test #2:
score: 100
Accepted
time: 0ms
memory: 98968kb
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