QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#117515#1. I/O TesticyM1voya200 ✓87ms3620kbC++98947b2023-07-01 14:56:072023-07-01 14:56:09

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:56:09]
  • 评测
  • 测评结果:200
  • 用时:87ms
  • 内存:3620kb
  • [2023-07-01 14:56:07]
  • 提交

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,s4,s5,s6,s7; 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() {
    read();
    for (int i=1; i<=1250000; ++i) {
        s0+=read(); s1+=read(); s2+=read(); s3+=read();
        s4+=read(); s5+=read(); s6+=read(); s7+=read();
    }
    printf("%lld\n",s0+s1+s2+s3+s4+s5+s6+s7);
    return 0;
}

output_test

#include<cstdio>
#define O cw[++p1]='1';

int p1=-1; char cw[65536];
inline void write() {
    O O O O O O O O O cw[++p1]=' ';
    if (p1>65516) fwrite(cw,1,p1+1,stdout),p1=-1;
}

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

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 100
Accepted

Test #1:

score: 100
Accepted
time: 87ms
memory: 3620kb

input:

10000000
302839538 367445599 190127964 591900058 111817383 412528598 406637651 876530775 320790404 972923002 229137373 742155799 335779559 694595286 744445402 313949740 326473144 767516340 281211488 638921603 922492157 921250512 694811738 689171463 699581697 542686875 137381060 676417606 736500920 2...

output:

5500787133530026

result:

points 1.0 input test passed

Subtask #2:

score: 100
Accepted

Test #2:

score: 100
Accepted
time: 24ms
memory: 1552kb

input:

10000000

output:

111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 ...

result:

points 1.0 output test passed