QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#676015#1. I/O Testdaydreamwarrior200 ✓248ms4616kbC++141.6kb2024-10-25 19:59:122024-10-25 19:59:13

Judging History

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

  • [2024-10-25 19:59:13]
  • 评测
  • 测评结果:200
  • 用时:248ms
  • 内存:4616kb
  • [2024-10-25 19:59:12]
  • 提交

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');
        while(c>='0'&&c<='9')x=x*10+(c^48),c=*this;
        return f?-x:x;
    }}in;unsigned 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,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');
        while(c>='0'&&c<='9')x=x*10+(c^48),c=*this;
        return f?-x:x;
    }}in;unsigned 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,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: 81ms
memory: 4616kb

input:

10000000
982974567 758746202 661195768 549757690 858162641 256124507 675561439 640723054 452767200 777388073 484871476 978702308 971529193 622552849 591464088 523156090 553026481 647850828 728510727 618710705 883064514 935084729 656915301 607508700 526389570 923527584 411213978 356791513 644288420 5...

output:

5500548843724144

result:

points 1.0 input test passed

Subtask #2:

score: 100
Accepted

Test #2:

score: 100
Accepted
time: 248ms
memory: 3632kb

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