QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#64664#1. I/O Testruizhangj100 194ms7384kbC++142.2kb2022-11-25 09:02:192022-11-25 09:02:21

Judging History

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

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2022-11-25 09:02:21]
  • 评测
  • 测评结果:100
  • 用时:194ms
  • 内存:7384kb
  • [2022-11-25 09:02:19]
  • 提交

config.txt

10000000 10000000

input_test

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
namespace IO{
    const int siz=1<<22;
    char a[siz],b[siz],*ia=a+siz,*ea=a+siz,*ib=b,*eb=b+siz;
    int p[105],l=0;
    inline char gc(){if (ia==ea) fread(a,1,siz,stdin),ia=a;return *ia++;}
    inline void flush(){fwrite(b,1,ib-b,stdout);ib=b;}
    inline void pc(char c){if (ib==eb) flush();*ib++=c;}
    template<typename T> inline T read(){
        T x=0;char t=gc();
        for (;t<'0' || t>'9';t=gc());
        for (;'0'<=t && t<='9';t=gc()) x=x*10+t-'0';
        return x;
    }
    template<typename T> inline void write(T x,char ed='\n'){
        if (x<0) pc('-'),x=-x;
        if (!x) pc('0');
        for (;x;x/=10) p[++l]=x%10;
        for (;l;--l) pc(p[l]+'0');pc(ed);
    }
    struct f{~f(){flush();}}F;
}
using IO::read;
using IO::write;
#define input
// #define output
int main(){
    #ifdef input
    ll sum=0;
    for (int i=1,n=read<int>();i<=n;++i) sum+=read<int>();
    write(sum);
    #endif
    #ifdef output
    for (int i=1,n=read<int>();i<=n;++i) write<int>(9999999999,' ');
    #endif
    return 0;
}

output_test

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
namespace IO{
    const int siz=1<<22;
    char a[siz],b[siz],*ia=a+siz,*ea=a+siz,*ib=b,*eb=b+siz;
    int p[105],l=0;
    inline char gc(){if (ia==ea) fread(a,1,siz,stdin),ia=a;return *ia++;}
    inline void flush(){fwrite(b,1,ib-b,stdout);ib=b;}
    inline void pc(char c){if (ib==eb) flush();*ib++=c;}
    template<typename T> inline T read(){
        T x=0;char t=gc();
        for (;t<'0' || t>'9';t=gc());
        for (;'0'<=t && t<='9';t=gc()) x=x*10+t-'0';
        return x;
    }
    template<typename T> inline void write(T x,char ed='\n'){
        if (x<0) pc('-'),x=-x;
        if (!x) pc('0');
        for (;x;x/=10) p[++l]=x%10;
        for (;l;--l) pc(p[l]+'0');pc(ed);
    }
    struct f{~f(){flush();}}F;
}
using IO::read;
using IO::write;
// #define input
#define output
int main(){
    #ifdef input
    ll sum=0;
    for (int i=1,n=read<int>();i<=n;++i) sum+=read<int>();
    write(sum);
    #endif
    #ifdef output
    for (int i=1,n=read<int>();i<=n;++i) write<int>(9999999999,' ');
    #endif
    return 0;
}

詳細信息

Subtask #1:

score: 100
Accepted

Test #1:

score: 100
Accepted
time: 96ms
memory: 7384kb

input:

10000000
886106572 206253612 659807173 266651904 535822664 427331590 359580226 240439591 569752880 946960529 892266099 654905819 125916046 427997019 168417404 113583332 722714519 199308584 298498884 803126916 928119524 903966617 194679963 236132074 359427128 999502077 524134563 583967818 865596212 8...

output:

5498569962509429

result:

points 1.0 input test passed

Subtask #2:

score: 0
Wrong Answer

Test #2:

score: 0
Wrong Answer
time: 194ms
memory: 7384kb

input:

10000000

output:

1410065407 1410065407 1410065407 1410065407 1410065407 1410065407 1410065407 1410065407 1410065407 1410065407 1410065407 1410065407 1410065407 1410065407 1410065407 1410065407 1410065407 1410065407 1410065407 1410065407 1410065407 1410065407 1410065407 1410065407 1410065407 1410065407 1410065407 141...

result:

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