QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#672710#1. I/O Testdaydreamwarrior200 ✓264ms4624kbC++141.6kb2024-10-24 18:20:052024-10-24 18:20:05

Judging History

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

  • [2024-10-24 18:20:05]
  • 评测
  • 测评结果:200
  • 用时:264ms
  • 内存:4624kb
  • [2024-10-24 18:20:05]
  • 提交

config.txt

10000000 10000000

input_test

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

namespace fastio{
    struct{char buf[1<<20],*l=buf,*r=l;
        operator char(){if(l==r)r=(l=buf)+fread(buf,1,1<<20,stdin);return *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;}
        while(c>='0'&&c<='9'){x=x*10+(c^48);c=*this;}
        return f?-x:x;
    }}in;signed stk[39],tp;
    template<typename T>void out(T x,char c=0){
        if(x<0)putchar('-'),x=-x;
        do stk[tp++]=x%10;while(x/=10);
        while(tp)putchar(stk[--tp]^48);
        if(c)putchar(c);
    }
}using fastio::in;using fastio::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;

namespace fastio{
    struct{char buf[1<<20],*l=buf,*r=l;
        operator char(){if(l==r)r=(l=buf)+fread(buf,1,1<<20,stdin);return *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;}
        while(c>='0'&&c<='9'){x=x*10+(c^48);c=*this;}
        return f?-x:x;
    }}in;signed stk[39],tp;
    template<typename T>void out(T x,char c=0){
        if(x<0)putchar('-'),x=-x;
        do stk[tp++]=x%10;while(x/=10);
        while(tp)putchar(stk[--tp]^48);
        if(c)putchar(c);
    }
}using fastio::in;using fastio::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: 80ms
memory: 4624kb

input:

10000000
977469776 804220053 114452597 454822022 617741839 410765327 210204335 117453692 902565849 108362728 627035282 495497195 619790570 630913833 662954389 967520749 789663979 499267418 455973882 308875163 816778589 855639747 402741633 610011066 747166137 515609265 808433264 715054165 398390023 6...

output:

5500398532027302

result:

points 1.0 input test passed

Subtask #2:

score: 100
Accepted

Test #2:

score: 100
Accepted
time: 264ms
memory: 3676kb

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