QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#32206 | #1. I/O Test | Qingyu | 100 | 95ms | 101220kb | C++23 | 856b | 2022-05-18 01:05:51 | 2022-05-18 01:05:52 |
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<100'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: 0
Wrong Answer
Test #1:
score: 0
Wrong Answer
time: 95ms
memory: 101180kb
input:
10000000 838680560 936306670 746879662 445087450 476669660 928828987 757142593 367500413 949326622 523524307 805295136 578944505 948360056 571116115 924885459 594731910 488533069 544446464 590463562 998497357 461154456 901314005 658490313 846787576 137373414 651919512 225727893 503081936 467939028 6...
output:
5500371115566883
result:
wrong answer expected 5500371710765499, found 5500371115566883
Subtask #2:
score: 100
Accepted
Test #2:
score: 100
Accepted
time: 17ms
memory: 101220kb
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