QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#41034 | #1. I/O Test | L1ngYu | 200 ✓ | 941ms | 11788kb | C++20 | 1.3kb | 2022-07-27 14:16:48 | 2022-07-27 14:16:49 |
Judging History
config.txt
10000000 10000000
input_test
#include <iostream>
using namespace std;
struct read
{
static const int M = 1 << 23;
char buf[M], *S = buf, *P = buf, c, l;
inline char gc() { return (S == P && (P = (S = buf) + fread(buf, 1, M, stdin), S == P) ? EOF : *S++); }
template<class T> read &operator>>(T &x)
{
for (c = 0;!isdigit(c);c = gc()) l = c;
for (x = 0;isdigit(c);c = gc()) x = x * 10 + (c & 15);
return x = (l ^ 45) ? x : -x, *this;
}
}Cin;
signed main()
{
int64_t ret = 0;
int n, x; Cin >> n;
for (int i = 1;i <= n;++i) Cin >> x, ret += x;
return cout << ret, 0;
}
output_test
#include <iostream>
using namespace std;
struct write
{
static const int M = 1 << 23;
char buf[M], *O = buf, s[50], len;
inline void out(char x) { (O - buf < M) ? (*O++ = x) : (fwrite(buf, O - buf, 1, stdout), O = buf, *O++ = x); }
inline void put() { fwrite(buf, O - buf, 1, stdout); } // return cout.put(), 0;
write &operator<<(char x) { out(x); return *this; }
write &operator<<(int x) { if (x < 0) out('-'), x = -x; if (!x) out('0'); for (len = 0;x;x /= 10) s[++len] = x % 10 + '0'; while (len--) out(s[len + 1]); return *this; }
}Cout;
constexpr int N = 1e9 - 1;
signed main()
{
int n; cin >> n;
for (int i = 1;i <= n;++i) cout << N << ' ';
return Cout.put(), 0;
}
详细
Subtask #1:
score: 100
Accepted
Test #1:
score: 100
Accepted
time: 132ms
memory: 11788kb
input:
10000000 374561773 626271956 364976256 648274824 268148324 260128506 434632934 870699908 252584497 395731046 403592671 373839769 757739778 658152657 154166699 687781973 876561520 288077648 573822866 224754620 584405371 577627785 985655378 454258380 762788437 355825556 867529058 983307793 781539592 5...
output:
5499370430124919
result:
points 1.0 input test passed
Subtask #2:
score: 100
Accepted
Test #2:
score: 100
Accepted
time: 941ms
memory: 3584kb
input:
10000000
output:
999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 ...
result:
points 1.0 output test passed