QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#117506#1. I/O TesticyM1voya99.99999 87ms3592kbC++14753b2023-07-01 14:41:082023-07-01 14:41:10

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:41:10]
  • 评测
  • 测评结果:99.99999
  • 用时:87ms
  • 内存:3592kb
  • [2023-07-01 14:41:08]
  • 提交

config.txt

9999999 9999999

input_test

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

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() {
    int n=read(); long long s=0;
    while (n--) s+=read();
    printf("%lld",s);
    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() {
    scanf("%d",&n);
    while (n--) write(10000000);
    return fwrite(cw,1,p1+1,stdout),0;
}

详细

Subtask #1:

score: 100
Acceptable Answer

Test #1:

score: 100
Acceptable Answer
time: 87ms
memory: 3592kb

input:

9999999
441435689 993365977 589058607 418361276 661032013 644465066 403997938 133983795 326061210 816558787 350527353 820042087 881553091 210891595 832829947 189689396 456685809 610008714 987062333 959903619 743402732 351650241 397471033 828382448 224864448 167974350 777223759 123031610 280326634 32...

output:

5498794708971897

result:

points 0.99999990 input test passed

Subtask #2:

score: 0
Wrong Answer

Test #2:

score: 0
Wrong Answer
time: 53ms
memory: 1692kb

input:

9999999

output:

10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 100...

result:

wrong answer Integer 10000000 violates the range [10^8, 999999999]