QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#675819#1. I/O Testdaydreamwarrior200 ✓271ms4696kbC++141.6kb2024-10-25 19:28:192024-10-25 19:28:20

Judging History

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

  • [2024-10-25 19:28:20]
  • 评测
  • 测评结果:200
  • 用时:271ms
  • 内存:4696kb
  • [2024-10-25 19:28:19]
  • 提交

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(){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');
        do x=x*10+(c^48),c=*this;while(c>='0'&&c<='9');
        return f?-x:x;
    }}in;unsigned stk[39],tp;
    template<typename T>inline 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,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(){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');
        do x=x*10+(c^48),c=*this;while(c>='0'&&c<='9');
        return f?-x:x;
    }}in;unsigned stk[39],tp;
    template<typename T>inline 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,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: 86ms
memory: 4696kb

input:

10000000
141055346 554664254 563806984 450878537 117550359 305476253 857576639 841328791 819357771 825064075 513132613 335646681 797981046 984198803 820541793 856273562 105967410 810355307 291978885 189589826 870609923 658111461 849546173 578859118 907436854 342924197 164308443 464272497 610591971 1...

output:

5499760232010329

result:

points 1.0 input test passed

Subtask #2:

score: 100
Accepted

Test #2:

score: 100
Accepted
time: 271ms
memory: 3600kb

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