QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#130186 | #1. I/O Test | NOI_AK_ME | 200 ✓ | 72ms | 99712kb | C | 910b | 2023-07-23 17:32:31 | 2023-07-23 17:32:32 |
Judging History
config.txt
10000000 10000000
input_test
#pragma GCC optimize("Ofast, unroll-loops")
#include <stdio.h>
char w[50], r[134217728], *z = r;
v = -1;
#define pc(x) w[++ v] = x
void f(long long x) {
if (x > 9) f(x / 10);
pc(x % 10 + 48);
}
l() {
register int x = 0; register char c;
do c = *z ++; while (c < 48 || c > 57);
while (c > 47 && c < 58) x = x * 10 + (c ^ 48), c = *z ++;
return x;
}
main() {
fread(r, 1, 134217728, stdin);
register long long a = 0;
l();
for (register int i = 0; i ^ 10000000; ++ i) { register int x = l(); a += x; }
f(a);
fwrite(w, 1, ++ v, stdout);
}
output_test
#pragma GCC optimize("Ofast, unroll-loops")
#include <stdio.h>
char w[134217728];
v = -1;
#define pc(x) w[++ v] = x
main() {
for (register int i = 0; i ^ 10000000; ++ i) pc('1'), pc('0'), pc('0'), pc('0'), pc('0'), pc('0'), pc('0'), pc('0'), pc('0'), pc(' ');
fwrite(w, 1, ++ v, stdout);
}
Details
Tip: Click on the bar to expand more detailed information
Subtask #1:
score: 100
Accepted
Test #1:
score: 100
Accepted
time: 72ms
memory: 99712kb
input:
10000000 166576353 414713551 607711388 104392135 591079507 237113203 468288366 353850175 656654737 881293060 854027805 816871325 251534512 379165271 338606111 518696451 580058246 201219280 333376881 623009312 918884241 901185149 296066108 927816740 577595441 549226631 835728440 981867604 795518682 7...
output:
5500149883174277
result:
points 1.0 input test passed
Subtask #2:
score: 100
Accepted
Test #2:
score: 100
Accepted
time: 12ms
memory: 99100kb
input:
10000000
output:
100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 ...
result:
points 1.0 output test passed