QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#130189#1. I/O TestNOI_AK_ME200 ✓72ms100912kbC1.7kb2023-07-23 17:33:552023-07-23 17:34:00

Judging History

你现在查看的是最新测评结果

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2023-07-23 17:34:00]
  • 评测
  • 测评结果:200
  • 用时:72ms
  • 内存:100912kb
  • [2023-07-23 17:33:55]
  • 提交

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 ^ 1000000; ++ i) pc('1'), pc('0'), pc('0'), pc('0'), pc('0'), pc('0'), pc('0'), pc('0'), pc('0'), pc(' '),
pc('1'), pc('0'), pc('0'), pc('0'), pc('0'), pc('0'), pc('0'), pc('0'), pc('0'), pc(' '),
pc('1'), pc('0'), pc('0'), pc('0'), pc('0'), pc('0'), pc('0'), pc('0'), pc('0'), pc(' '),
pc('1'), pc('0'), pc('0'), pc('0'), pc('0'), pc('0'), pc('0'), pc('0'), pc('0'), pc(' '),
pc('1'), pc('0'), pc('0'), pc('0'), pc('0'), pc('0'), pc('0'), pc('0'), pc('0'), pc(' '),
pc('1'), pc('0'), pc('0'), pc('0'), pc('0'), pc('0'), pc('0'), pc('0'), pc('0'), pc(' '),
pc('1'), pc('0'), pc('0'), pc('0'), pc('0'), pc('0'), pc('0'), pc('0'), pc('0'), pc(' '),
pc('1'), pc('0'), pc('0'), pc('0'), pc('0'), pc('0'), pc('0'), pc('0'), pc('0'), pc(' '),
pc('1'), pc('0'), pc('0'), pc('0'), pc('0'), pc('0'), pc('0'), pc('0'), pc('0'), pc(' '),
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: 100912kb

input:

10000000
617573319 967902985 815130200 854145726 548475407 922519419 125211394 873023014 510552537 546999614 678187310 878955803 888710224 651865162 561486641 913049349 706371777 482013933 477066303 942112032 262477843 982927615 784025860 865456392 224836244 540094159 336564328 328897258 297913144 9...

output:

5499176733455796

result:

points 1.0 input test passed

Subtask #2:

score: 100
Accepted

Test #2:

score: 100
Accepted
time: 8ms
memory: 99468kb

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