QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#92177 | #1. I/O Test | JWRuixi | 200 ✓ | 141ms | 102180kb | C++23 | 2.7kb | 2023-03-30 13:19:58 | 2023-03-30 13:20:01 |
Judging History
config.txt
10000000 10000000
input_test
#include <bits/stdc++.h>
#pragma GCC optimize("Ofast")
#pragma GCC optimize("no-stack-protector,unroll-loops")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,avx2")
#define LL long long
#define writesp(x) write(x), pc(' ')
#define writeln(x) write(x), pc('\n')
#define FileIO(ch) freopen(ch".in", "r", stdin), freopen(ch".out", "w", stdout)
using namespace std;
namespace IO {
char ibuf[134217728], *iS = ibuf, *iT, obuf[134217728], *oS = obuf;
#define gh() *iS++
#define pc(ch) *oS++ = ch
inline unsigned read() {
char ch = gh();
unsigned x = 0;
while (ch < '0' || ch > '9') ch = gh();
while (ch >= '0' && ch <= '9') x = (x << 1) + (x << 3) + (ch ^ 48), ch = gh();
return x;
}
inline void flush () {
fwrite(obuf, 1, oS - obuf, stdout);
}
template<typename _Tp>
inline void write (_Tp x) {
static char stk[64], *tp = stk;
if (x < 0) x = ~(x - 1), pc('-');
do *tp++ = x % 10, x /= 10;
while (x);
while (tp != stk) pc((*--tp) | 48);
}
}
using IO::read;
using IO::write;
using IO::flush;
unsigned n;
LL s;
int main () {
ios::sync_with_stdio(0), cout.tie(0);
fread(IO::ibuf, 1, 134217728, stdin);
n = read();
while (n--) s += read();
cout << s;
}
output_test
#include <bits/stdc++.h>
#pragma GCC optimize("Ofast")
#pragma GCC optimize("no-stack-protector")
#pragma GCC optimize("unroll-loops")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,avx2")
#define LL long long
#define writesp(x) write(x), pc(' ')
#define writeln(x) write(x), pc('\n')
#define FileIO(ch) freopen(ch".in", "r", stdin), freopen(ch".out", "w", stdout)
using namespace std;
namespace IO {
char ibuf[134217728], *iS = ibuf, *iT, obuf[134217728], *oS = obuf;
#define gh() *iS++
#define pc(ch) *oS++ = ch
inline int read() {
char ch = gh();
int x = 0;
while (ch < '0' || ch > '9') ch = gh();
while (ch >= '0' && ch <= '9') x = (x << 1) + (x << 3) + (ch ^ 48), ch = gh();
return x;
}
inline void flush () {
fwrite(obuf, 1, oS - obuf, stdout);
}
template<typename _Tp>
inline void write (_Tp x) {
static char stk[64], *tp = stk;
if (x < 0) x = ~(x - 1), pc('-');
do *tp++ = x % 10, x /= 10;
while (x);
while (tp != stk) pc((*--tp) | 48);
}
}
using IO::read;
using IO::write;
using IO::flush;
int main () {
for (unsigned i = 1; i <= 100000; i++) *reinterpret_cast<unsigned*>(IO::oS) = '0001', *reinterpret_cast<unsigned*>(IO::oS + 4) = '0000', *reinterpret_cast<unsigned*>(IO::oS + 8) = '\n0', IO::oS += 10;
for (unsigned i = 1; i <= 100; i++) flush();
}
詳細信息
Subtask #1:
score: 100
Accepted
Test #1:
score: 100
Accepted
time: 141ms
memory: 102180kb
input:
10000000 618567670 698884270 141743386 323861764 697974377 130004379 543715800 871395010 396385737 782701849 300495453 465806958 391727150 824174816 230724567 267087273 137649510 735136818 904425985 697953375 176265291 695242177 564276437 950555530 928645826 523996705 814730993 735616457 509095688 1...
output:
5499299437877162
result:
points 1.0 input test passed
Subtask #2:
score: 100
Accepted
Test #2:
score: 100
Accepted
time: 4ms
memory: 4544kb
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