QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#333905 | #1. I/O Test | NOI_AK_ME | 200 ✓ | 60ms | 101244kb | C++23 | 942b | 2024-02-20 19:14:44 | 2024-02-20 19:14:45 |
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, 110000000);
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) = '0001', *reinterpret_cast<unsigned*>(pout + 4) = '0000', *reinterpret_cast<unsigned short*>(pout + 8) = '\n0', pout += 10, ++i);
cout.write(buf, pout - buf);
return 0;
}
詳細信息
Subtask #1:
score: 100
Accepted
Test #1:
score: 100
Accepted
time: 60ms
memory: 101244kb
input:
10000000 586592953 833998712 565545620 775460943 616416555 637887766 829540953 296452646 687718223 537519579 195796220 601620513 419226576 484027550 913653207 983623016 809306625 770179266 156011127 649457176 214122240 215075780 335949670 889538657 233371112 820204086 222993057 290403766 264273482 8...
output:
5499895451559342
result:
points 1.0 input test passed
Subtask #2:
score: 100
Accepted
Test #2:
score: 100
Accepted
time: 4ms
memory: 101240kb
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