QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#684113#1. I/O Testdaydreamwarrior200 ✓211ms4628kbC++141.8kb2024-10-28 10:38:172024-10-28 10:38:18

Judging History

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

  • [2024-10-28 10:38:18]
  • 评测
  • 测评结果:200
  • 用时:211ms
  • 内存:4628kb
  • [2024-10-28 10:38:17]
  • 提交

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;
    void operator()(char c){putchar_unlocked(c);}
    void operator()(const char *s){while(*s)(*this)(*s++);}
    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;
    void operator()(char c){putchar_unlocked(c);}
    void operator()(const char *s){while(*s)(*this)(*s++);}
    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: 100
Accepted

Test #1:

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

input:

10000000
669977492 449461094 321949761 405381505 980088164 443660412 568947507 732443927 778069722 901251981 840078053 498504155 398128338 715656973 509011545 237104677 516830536 876096256 279344702 189956552 245465471 614080722 699495843 854549585 728144116 788952208 966932860 687329274 689630402 9...

output:

5500721031956171

result:

points 1.0 input test passed

Subtask #2:

score: 100
Accepted

Test #2:

score: 100
Accepted
time: 211ms
memory: 3656kb

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