QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#61904 | #1. I/O Test | LXl491214 | 100 | 53ms | 101040kb | C++23 | 936b | 2022-11-15 21:25:19 | 2022-11-15 21:25:19 |
Judging History
config.txt
10000000 10000000
input_test
#include<iostream>
using namespace std;
char buf[134217728];
const char* pin = buf;
inline unsigned ReadU() { for (; *pin < '0'; ++pin); unsigned ans = *pin ^ '0'; for (; *(++pin) >= '0'; ans = ans * 10 + *pin - '0'); return ans; }
int main()
{
ios::sync_with_stdio(false);
cin.tie(nullptr);
cout.tie(nullptr);
cin.read(buf, 134217728);
const unsigned n = ReadU();
unsigned long long ans = 0;
for (unsigned i = 1; i <= n; ans += ReadU(), ++i);
cout << ans;
return 0;
}
output_test
#include<iostream>
using namespace std;
char buf[134217728], * pout = buf;
int main()
{
ios::sync_with_stdio(false);
cin.tie(nullptr);
cout.tie(nullptr);
unsigned n;
cin >> n;
for (unsigned i = 1; i <= n; *reinterpret_cast<unsigned*>(pout) = '1000', *reinterpret_cast<unsigned*>(pout + 4) = '0000', *reinterpret_cast<unsigned*>(pout + 8) = '0\n', pout += 10, ++i);
cout.write(buf, pout - buf);
return 0;
}
詳細信息
Subtask #1:
score: 100
Accepted
Test #1:
score: 100
Accepted
time: 53ms
memory: 100920kb
input:
10000000 698657675 935911028 738612694 986638137 283548032 167338535 730908360 150706891 394031019 417371278 487612963 350911393 764761774 857113194 315908561 668157671 981007691 462483312 851957133 849424857 728540081 721198204 150127053 207535823 656931141 189897812 317281455 816141367 288927426 8...
output:
5500374670618549
result:
points 1.0 input test passed
Subtask #2:
score: 0
Wrong Answer
Test #2:
score: 0
Wrong Answer
time: 15ms
memory: 101040kb
input:
10000000
output:
00010000 000010000 000010000 000010000 000010000 000010000 000010000 000010000 000010000 000010000 000010000 000010000 000010000 000010000 000010000 000010000 000010000 000010000 000010000 000010000 000010000 000010000 000010000 000010000 000010000 000010000 000010000 000010000 000010000 000010000 0...
result:
wrong output format Expected integer, but "00010000" found