QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#675786#1. I/O Testdaydreamwarrior200 ✓261ms4708kbC++141.4kb2024-10-25 19:24:052024-10-25 19:24:07

Judging History

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

  • [2024-10-25 19:24:07]
  • 评测
  • 测评结果:200
  • 用时:261ms
  • 内存:4708kb
  • [2024-10-25 19:24:05]
  • 提交

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)?EOF:*l++;}
template<typename T>operator T(){
    T x=0;char f=0,c=*this;
    while(c<'0'||c>'9'){if(c=='-')f=1;c=*this;}
    do x=x*10+(c^48),c=*this;while(c>='0'&&c<='9');
    return f?-x:x;
}}in;
template<typename T>inline void out(T x,char c=0){
    static unsigned stk[39],tp;
    if(x<0)putchar('-'),x=-x;
    do stk[tp++]=x%10;while(x/=10);
    while(tp)putchar(stk[--tp]^48);
    if(c)putchar(c);
}

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)?EOF:*l++;}
template<typename T>operator T(){
    T x=0;char f=0,c=*this;
    while(c<'0'||c>'9'){if(c=='-')f=1;c=*this;}
    do x=x*10+(c^48),c=*this;while(c>='0'&&c<='9');
    return f?-x:x;
}}in;
template<typename T>inline void out(T x,char c=0){
    static unsigned stk[39],tp;
    if(x<0)putchar('-'),x=-x;
    do stk[tp++]=x%10;while(x/=10);
    while(tp)putchar(stk[--tp]^48);
    if(c)putchar(c);
}

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: 79ms
memory: 4708kb

input:

10000000
495254094 871471396 186143785 592332699 849740873 838556542 540568114 825754622 796042111 182432454 748803984 117053706 479830472 575870945 446538977 940524120 140567850 889791847 407120117 415833718 681308500 452997835 579229446 855615704 656458574 858868922 437584280 248915766 286020326 8...

output:

5499905250533220

result:

points 1.0 input test passed

Subtask #2:

score: 100
Accepted

Test #2:

score: 100
Accepted
time: 261ms
memory: 3688kb

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