QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#684156#1. I/O Testdaydreamwarrior0 217ms4704kbC++142.0kb2024-10-28 11:00:222024-10-28 11:00:22

Judging History

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

  • [2024-10-28 11:00:22]
  • 评测
  • 测评结果:0
  • 用时:217ms
  • 内存:4704kb
  • [2024-10-28 11:00:22]
  • 提交

config.txt

10000000 10000000

input_test

#include <iostream>
#include <cstring>
#include <algorithm>
using namespace std;

struct{char buf[1<<20],*l=buf,*r=l;
operator char(){return l==r&&(r=(l=buf)+fread(buf,1,1<<20,stdin),l==r)?-1:*l++;}
template<typename T>operator T(){
    T x=0;char f=0,c;
    do if((c=*this)=='-')f=1;while(c<'0'||c>'9');
    while(c>='0'&&c<='9')x=x*10+(c^48),c=*this;
    return f?-x:x;
}}in;
struct{signed stk[39],tp;char buf[1<<19],*p=buf;
    void flush(){fwrite(buf,1,p-buf,stdout);p=buf;}
    void operator()(char c){(*p++)=c;if(p-buf==1<<19)flush();}
    void operator()(const char *s){while(*s)(*this)(*s++);(*this)('\n');}
    template<typename T>void operator()(T x){
        if(x<0)(*this)('-'),x=-x;
        do stk[tp++]=x%10;while(x/=10);
        while(tp)(*this)(char(stk[--tp]^48));
    }template<typename T,typename...Args>
    void operator()(T x,Args...args){(*this)(x);(*this)(args...);}
}out;

int main(){
	int n = in;
	long long ans = 0;
	for(int k=1;k<=n;k++)
		ans += (int)in;
	out(ans);
	return 0;
}

output_test

#include <iostream>
#include <cstring>
#include <algorithm>
using namespace std;

struct{char buf[1<<20],*l=buf,*r=l;
operator char(){return l==r&&(r=(l=buf)+fread(buf,1,1<<20,stdin),l==r)?-1:*l++;}
template<typename T>operator T(){
    T x=0;char f=0,c;
    do if((c=*this)=='-')f=1;while(c<'0'||c>'9');
    while(c>='0'&&c<='9')x=x*10+(c^48),c=*this;
    return f?-x:x;
}}in;
struct{signed stk[39],tp;char buf[1<<19],*p=buf;
    void flush(){fwrite(buf,1,p-buf,stdout);p=buf;}
    void operator()(char c){(*p++)=c;if(p-buf==1<<19)flush();}
    void operator()(const char *s){while(*s)(*this)(*s++);(*this)('\n');}
    template<typename T>void operator()(T x){
        if(x<0)(*this)('-'),x=-x;
        do stk[tp++]=x%10;while(x/=10);
        while(tp)(*this)(char(stk[--tp]^48));
    }template<typename T,typename...Args>
    void operator()(T x,Args...args){(*this)(x);(*this)(args...);}
}out;

int main(){
    int n = in;
    for(int k=1;k<=n;k++)
        out(100000000,' ');
    return 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: 87ms
memory: 4704kb

input:

10000000
772339619 253588250 723905518 530618197 995346193 121918246 402576463 936994937 427133742 530520420 482317629 138406711 906841489 250265147 626677519 593668819 911271713 575715804 189396099 174147918 599750410 675710278 773466318 816820975 562215339 987442544 317845491 296968482 377592444 1...

output:


result:

wrong output format Unexpected end of file - int64 expected

Subtask #2:

score: 0
Wrong Answer

Test #2:

score: 0
Wrong Answer
time: 217ms
memory: 4076kb

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:

wrong output format Unexpected end of file - int32 expected