QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#84175 | #1. I/O Test | JWRuixi | 200 ✓ | 507ms | 4296kb | C++20 | 2.8kb | 2023-03-05 20:57:14 | 2023-03-05 20:57:17 |
Judging History
config.txt
10000000 10000000
input_test
#include <bits/stdc++.h>
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,avx2")
#define LL long long
#define writesp(x) write(x), putchar(' ')
#define writeln(x) write(x), putchar('\n')
#define FileIO(ch) freopen(ch".in", "r", stdin), freopen(ch".out", "w", stdout)
using namespace std;
namespace IO {
char ibuf[(1 << 20) + 1], *iS, *iT, stk[(1 << 20) + 1], *tp = stk, obuf[(1 << 20) + 1], *oS = obuf;
#if ONLINE_JUDGE
#define gh() (iS == iT ? iT = (iS = ibuf) + fread(ibuf, 1, (1 << 20) + 1, stdin), (iS == iT ? EOF : *iS++) : *iS++)
#else
#define gh() getchar()
#endif
inline int read() {
char ch = gh();
int x = 0;
bool t = 0;
while (ch < '0' || ch > '9') t |= ch == '-', ch = gh();
while (ch >= '0' && ch <= '9') x = (x << 1) + (x << 3) + (ch ^ 48), ch = gh();
return t ? ~(x - 1) : x;
}
inline void write(LL x) {
if (x < 0) {
x = ~(x - 1);
*oS++ = '-';
}
for (; x > 9; x /= 10) *tp++ = ((x % 10) | 48);
*tp++ = (x | 48);
while (tp != stk) *oS++ = *--tp;
fwrite(obuf, 1, oS - obuf, stdout), oS = obuf;
}
}
using IO::read;
using IO::write;
int n;
LL ans;
int main() {
n = read();
for (int i = 1; i <= n; i++) ans += read();
write(ans);
}
// I love WHQ!
output_test
#include <bits/stdc++.h>
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,avx2")
#define LL long long
#define writesp(x) write(x), putchar(' ')
#define writeln(x) write(x), putchar('\n')
#define FileIO(ch) freopen(ch".in", "r", stdin), freopen(ch".out", "w", stdout)
using namespace std;
namespace IO {
char ibuf[(1 << 20) + 1], *iS, *iT, stk[20], *tp = stk, obuf[(1 << 20) + 1], *oS = obuf;
#if ONLINE_JUDGE
#define gh() (iS == iT ? iT = (iS = ibuf) + fread(ibuf, 1, (1 << 20) + 1, stdin), (iS == iT ? EOF : *iS++) : *iS++)
#else
#define gh() getchar()
#endif
inline int read() {
char ch = gh();
int x = 0;
bool t = 0;
while (ch < '0' || ch > '9') t |= ch == '-', ch = gh();
while (ch >= '0' && ch <= '9') x = (x << 1) + (x << 3) + (ch ^ 48), ch = gh();
return t ? ~(x - 1) : x;
}
inline void flush () {
fwrite(obuf, 1, oS - obuf, stdout), oS = obuf;
}
inline void pc (char ch) {
if (oS == obuf + (1 << 20) + 1) flush();
*oS++ = ch;
}
inline void write(int x) {
if (x < 0) {
x = ~(x - 1);
*oS++ = '-';
}
for (; x > 9; x /= 10) *tp++ = ((x % 10) | 48);
*tp++ = (x | 48);
while (tp != stk) *oS++ = *--tp;
fwrite(obuf, 1, oS - obuf, stdout), oS = obuf;
}
}
using IO::read;
using IO::write;
int n;
int main() {
n = read();
for (int i = 1; i <= n; i++) writesp(100000000);
return IO::flush(), 0;
}
// I love WHQ!
詳細信息
Subtask #1:
score: 100
Accepted
Test #1:
score: 100
Accepted
time: 81ms
memory: 4296kb
input:
10000000 485702390 259995934 430441608 668108634 121409692 940363591 107152513 969704861 991431542 690669228 890639961 545348211 342503927 419264122 477234029 855258694 314535719 120878383 102312444 939894223 250726285 655547575 763807128 910547792 218782663 707089980 583731009 945270451 179101224 3...
output:
5500006808282658
result:
points 1.0 input test passed
Subtask #2:
score: 100
Accepted
Test #2:
score: 100
Accepted
time: 507ms
memory: 3288kb
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