QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#32207 | #1. I/O Test | Qingyu | 200 ✓ | 99ms | 101248kb | C++23 | 856b | 2022-05-18 01:06:46 | 2022-05-18 01:06:49 |
Judging History
config.txt
10000000 10000000
input_test
#include <bits/stdc++.h>
template <int T>
struct fast_io {
char p[T], *p1, *p2;
fast_io() {
p1 = p2 = p;
fread(p, 1, T, stdin);
}
char gc() {
return *p1++;
}
};
fast_io<110'000'000> io;
int read() {
int r = 0, neg = 1;
char ch;
do ch = io.gc();while (ch < 48 || ch > 57);
do r = r * 10 + ch - 48, ch = io.gc(); while (ch >= 48 && ch <= 57);
return r;
}
int main() {
read();
long long sum = 0;
for (int i = 0; i < 10'000'000; ++i)
sum += read();
std::cout << sum;
}
output_test
#include <bits/stdc++.h>
char s[100'000'000];
int main() {
int n, x;
long long sum = 0;
int p=0;
for (int i = 0; i < 10'000'000; ++i) {
s[p++]=49;s[p++]=49;
s[p++]=49;
s[p++]=49;
s[p++]=49;
s[p++]=49;
s[p++]=49;
s[p++]=49;
s[p++]=49;
s[p++]='\n';
}
fwrite(s,1,p,stdout);
}
Details
Tip: Click on the bar to expand more detailed information
Subtask #1:
score: 100
Accepted
Test #1:
score: 100
Accepted
time: 99ms
memory: 101248kb
input:
10000000 145165236 681759182 796044185 921474046 391492601 181665817 932527299 688679738 228113422 158012663 939885020 237878533 390262327 908020228 667180583 764127570 728037664 177455323 567624658 134279864 304367469 907350040 306945085 294843150 654085861 636035650 167706587 810701619 670415164 2...
output:
5500591680863473
result:
points 1.0 input test passed
Subtask #2:
score: 100
Accepted
Test #2:
score: 100
Accepted
time: 12ms
memory: 101236kb
input:
10000000
output:
111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 ...
result:
points 1.0 output test passed