QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#50760 | #1. I/O Test | iee | 200 ✓ | 219ms | 4764kb | C++14 | 919b | 2022-09-29 10:16:46 | 2022-09-29 10:16:47 |
Judging History
config.txt
10000000 10000000
input_test
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
char buf[(1 << 20) + 1], *p1 = buf, *p2 = buf;
char gc() {
if (p1 == p2) {
p1 = buf;
p2 = buf + fread(buf, 1, 1 << 20, stdin);
}
return *p1++;
}
int read() {
int x = 0, c = gc();
while (!isdigit(c)) c = gc();
while (isdigit(c)) x = x * 10 + (c - '0'), c = gc();
return x;
}
int main() {
int N = read();
ll sum = 0;
for (int i = 1; i <= N; ++i) sum += read();
printf("%lld", sum);
return 0;
}
output_test
#include <bits/stdc++.h>
using namespace std;
char buf[(1 << 20)], *p = buf;
void pc(char x) {
if (p - buf < (1 << 20)) *p++ = x;
else fwrite(buf, 1, p - buf, stdout), p = buf, *p++ = x;
}
void print(int x) {
if (x > 9) print(x / 10);
pc(x % 10 + '0');
}
int main() {
int N;
scanf("%d", &N);
while (N--)
print(999999999), pc(' ');
fwrite(buf, 1, p - buf, stdout);
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Subtask #1:
score: 100
Accepted
Test #1:
score: 100
Accepted
time: 121ms
memory: 4764kb
input:
10000000 413213339 998511065 432546170 814717322 730372506 162349354 687554629 681062602 992893614 702956727 574436869 286265064 305990660 852626637 359652766 140133763 480554919 618992946 139621347 999011818 447207959 862759458 836589811 702015369 990853085 689062809 716365124 992641713 356094206 6...
output:
5500227737078553
result:
points 1.0 input test passed
Subtask #2:
score: 100
Accepted
Test #2:
score: 100
Accepted
time: 219ms
memory: 4592kb
input:
10000000
output:
999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 ...
result:
points 1.0 output test passed