QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#130832 | #1. I/O Test | Li_Feiy | 1 | 2ms | 4372kb | C++14 | 799b | 2023-07-25 11:55:35 | 2023-07-25 11:55:38 |
Judging History
config.txt
100000 100000
input_test
#include<bits/stdc++.h>
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()
{
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 tad[134217728], * pout = buf;
int main()
{
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(tad, pout - tad);
return 0;
}
詳細信息
Subtask #1:
score: 1
Acceptable Answer
Test #1:
score: 1
Acceptable Answer
time: 2ms
memory: 4372kb
input:
100000 242347228 482842875 309441804 640039505 503037261 391403120 634924965 141116622 294620311 421869058 148280603 150286429 967738100 785985349 785093491 804060585 969514912 750011126 931038942 959866111 704645519 775430231 325573542 495026017 200239937 505894704 169427844 351624668 974958499 606...
output:
55070388007173
result:
points 0.010 input test passed
Subtask #2:
score: 0
output_test Judgement Failed
Test #2:
score: 0
output_test Judgement Failed
input:
100000