QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#117509#1. I/O TesticyM1voya100 85ms3596kbC++14852b2023-07-01 14:47:512023-07-01 14:47:53

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-01 14:47:53]
  • 评测
  • 测评结果:100
  • 用时:85ms
  • 内存:3596kb
  • [2023-07-01 14:47:51]
  • 提交

config.txt

10000000 10000000

input_test

#include<bits/stdc++.h>
#define gc (l==r&&(r=(l=c)+fread(c,1,65536,stdin),l==r)?EOF:*l++)

long long s0,s1,s2,s3; char c[65536],*l=c,*r=c;
inline int read() {
    int x=0; char ch=gc;
    while (!isdigit(ch)) ch=gc;
    while (isdigit(ch)) x=x*10+(ch^48),ch=gc;
    return x;
}

int main() {
    for (int i=1; i<=2500000; ++i) {
    	s0+=read(); s1+=read(); s2+=read(); s3+=read();
    }
    printf("%lld\n",s0+s1+s2+s3);
    return 0;
}

output_test

#include<cstdio>

int n,p1=-1,p2,num[12]; char cw[65536];
inline void write(int x) {
    if (p1>65516) fwrite(cw,1,p1+1,stdout),p1=-1;
    do num[++p2]=x%10; while (x/=10);
    do cw[++p1]=num[p2]|48; while (--p2);
    cw[++p1]=' ';
}

int main() {
    for (int i=1; i<=5000000; ++i)
        write(100000000),write(100000000);
    return fwrite(cw,1,p1+1,stdout),0;
}

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 0
Wrong Answer

Test #1:

score: 0
Wrong Answer
time: 85ms
memory: 3596kb

input:

10000000
882862679 618002949 734389036 197604008 134777699 916318455 665944153 553297407 542866618 918207761 235303759 465410498 880377657 967473034 178177946 581374978 453894001 825265130 621561951 706837812 476953859 482248431 732005210 188466871 634385911 202447471 267648526 363163760 336900674 2...

output:

5499828998969228

result:

wrong answer expected 5499829636458843, found 5499828998969228

Subtask #2:

score: 100
Accepted

Test #2:

score: 100
Accepted
time: 60ms
memory: 1860kb

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