QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#61907 | #1. I/O Test | LXl491214 | 200 ✓ | 58ms | 101140kb | C++23 | 989b | 2022-11-15 21:29:53 | 2022-11-15 21:29:54 |
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 (const char* const end_pout = buf + 10 * n; pout != end_pout; pout += 10)
{
*reinterpret_cast<unsigned*>(pout) = *reinterpret_cast<unsigned*>(pout + 4) = '1111';
*reinterpret_cast<unsigned*>(pout + 8) = ' 0';
}
cout.write(buf, static_cast<size_t>(10 * n));
return 0;
}
詳細信息
Subtask #1:
score: 100
Accepted
Test #1:
score: 100
Accepted
time: 58ms
memory: 101140kb
input:
10000000 782323058 259319948 878142989 284454208 915592539 566972501 171096419 320947514 787903075 911347987 721157454 691869050 804768529 882829113 292425765 996027698 388409984 262926204 979525069 615018750 470278453 317097328 793948542 971036284 605818061 386427330 249053799 335383938 122957225 5...
output:
5500425713918983
result:
points 1.0 input test passed
Subtask #2:
score: 100
Accepted
Test #2:
score: 100
Accepted
time: 8ms
memory: 100904kb
input:
10000000
output:
111111110 111111110 111111110 111111110 111111110 111111110 111111110 111111110 111111110 111111110 111111110 111111110 111111110 111111110 111111110 111111110 111111110 111111110 111111110 111111110 111111110 111111110 111111110 111111110 111111110 111111110 111111110 111111110 111111110 111111110 ...
result:
points 1.0 output test passed