QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#673800#1. I/O Testdaydreamwarrior200 ✓268ms4564kbC++141.6kb2024-10-25 10:25:072024-10-25 10:25:08

Judging History

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

  • [2024-10-25 10:25:08]
  • 评测
  • 测评结果:200
  • 用时:268ms
  • 内存:4564kb
  • [2024-10-25 10:25:07]
  • 提交

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=buf;
    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;}
        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++]=signed(x%10);while(x/=10);
        while(tp)putchar(stk[--tp]^48);
        if(c)putchar(c);
}}using fastio::in,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=buf;
    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;}
        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++]=signed(x%10);while(x/=10);
        while(tp)putchar(stk[--tp]^48);
        if(c)putchar(c);
}}using fastio::in,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: 84ms
memory: 4564kb

input:

10000000
408387554 224128350 297059834 881657392 544135297 226160895 643585917 859971241 955386487 678673661 162155279 669293276 840759931 995566322 743708984 565765895 119849116 422015327 485148369 634728757 582996832 576165210 758846700 464406806 631918335 714399505 655899430 638196851 632342111 4...

output:

5500537916376444

result:

points 1.0 input test passed

Subtask #2:

score: 100
Accepted

Test #2:

score: 100
Accepted
time: 268ms
memory: 3608kb

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