QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#188982 | #1. I/O Test | 5ab | 200 ✓ | 410ms | 101100kb | C++20 | 1.3kb | 2023-09-26 18:33:41 | 2023-09-26 18:33:43 |
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 <iostream>
using namespace std;
#define all(x) (x).begin(), (x).end()
#define ssz(x) (int((x).size()))
auto chmax = [](auto& x, auto y) { if (x < y) x = y; };
auto chmin = [](auto& x, auto y) { if (y < x) x = y; };
using ll = long long;
signed main()
{
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
int n, a = 1e8;
cin >> n;
for (int i = 0; i < n; i++)
cout << a << " ";
return 0;
}
// started coding at: 09-26 18:32:36
詳細信息
Subtask #1:
score: 100
Accepted
Test #1:
score: 100
Accepted
time: 57ms
memory: 101100kb
input:
10000000 864640337 613992028 753120925 386699563 826978602 793583114 876858081 408462726 731078963 308683137 905574247 739992504 220812349 942871087 961351044 391437625 717862432 312319942 748297440 248287392 815252540 189948454 805773019 669951435 108324971 100046075 494407767 173097653 633049319 4...
output:
5500761826115814
result:
points 1.0 input test passed
Subtask #2:
score: 100
Accepted
Test #2:
score: 100
Accepted
time: 410ms
memory: 3448kb
input:
10000000
output:
100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 ...
result:
points 1.0 output test passed