QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#333904 | #1. I/O Test | NOI_AK_ME | 200 ✓ | 55ms | 101292kb | C++23 | 949b | 2024-02-20 19:13:42 | 2024-02-20 19:13:43 |
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);
fread(buf, 1, 110000000, stdin);
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: 55ms
memory: 101200kb
input:
10000000 174977053 830438942 123132068 733685302 267558755 973826770 124737446 298356589 631303441 733218951 445120187 254912303 506701232 681531832 695009052 689902016 404133915 303361812 533819994 812108170 823823747 857025791 266769338 954302075 791124341 491212867 102269100 951400406 848573591 7...
output:
5501032340345047
result:
points 1.0 input test passed
Subtask #2:
score: 100
Accepted
Test #2:
score: 100
Accepted
time: 20ms
memory: 101292kb
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