QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#282443 | #1. I/O Test | uzu_23 | 200 ✓ | 485ms | 102344kb | C++23 | 805b | 2023-12-12 01:06:03 | 2023-12-12 01:06:03 |
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
// output_test.cpp
#include <iostream>
using namespace std;
int main() {
int Nout;
cin >> Nout;
for (int i = 0; i < Nout; ++i) {
// Output N integers in the range [10^8, 10^9)
cout << (100000000 + i) << " ";
}
cout << endl;
return 0;
}
詳細信息
Subtask #1:
score: 100
Accepted
Test #1:
score: 100
Accepted
time: 57ms
memory: 102344kb
input:
10000000 839433598 499243815 617693298 528874309 424439966 647217270 217469602 684360148 609856310 384103858 170298495 922576080 442303655 530079956 571938914 561845394 567400071 752388752 966839376 546884773 985627395 137181070 779335373 272337716 457044988 280489161 682310063 490411944 875821722 9...
output:
5500869041775296
result:
points 1.0 input test passed
Subtask #2:
score: 100
Accepted
Test #2:
score: 100
Accepted
time: 485ms
memory: 3428kb
input:
10000000
output:
100000000 100000001 100000002 100000003 100000004 100000005 100000006 100000007 100000008 100000009 100000010 100000011 100000012 100000013 100000014 100000015 100000016 100000017 100000018 100000019 100000020 100000021 100000022 100000023 100000024 100000025 100000026 100000027 100000028 100000029 ...
result:
points 1.0 output test passed