QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#61903 | #1. I/O Test | LXl491214 | 0 | 0ms | 0kb | C++23 | 933b | 2022-11-15 21:23:27 | 2022-11-15 21:23:28 |
Judging History
config.txt
10000000 10000000
input_test
#include<iostream>
using namespace std;
char buf[16777216];
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, 16777216);
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[16777216], * 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: 0
input_test Runtime Error
Test #1:
score: 0
input_test Runtime Error
input:
10000000 131173591 659991049 498993584 357442420 169506349 402412465 942043120 455621983 210999972 676314091 654433255 377189059 981715268 243549298 371415754 786496037 378701104 624528697 781782801 957954583 461635939 187576310 236581740 901181486 271734121 695790498 242760402 182904726 278983603 8...
output:
result:
Subtask #2:
score: 0
output_test Runtime Error
Test #2:
score: 0
output_test Runtime Error
input:
10000000