QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#130183#1. I/O TestNOI_AK_ME100 71ms100820kbC903b2023-07-23 17:30:522023-07-23 17:31: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:31:00]
  • 评测
  • 测评结果:100
  • 用时:71ms
  • 内存:100820kb
  • [2023-07-23 17:30:52]
  • 提交

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;
	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: 0
Wrong Answer

Test #1:

score: 0
Wrong Answer
time: 71ms
memory: 98996kb

input:

10000000
897104920 842664664 810100614 883348212 605981448 200467973 449268741 640188256 874384244 481194079 416204996 379789725 329871493 117616566 549809367 935714817 343168192 527429063 892814638 666177574 376991711 934574085 104943831 896086680 564531089 123085984 583615741 195668108 521794446 2...

output:

5500420111315363

result:

wrong answer expected 5500420639863893, found 5500420111315363

Subtask #2:

score: 100
Accepted

Test #2:

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

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