QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#675460#1. I/O Testdaydreamwarrior200 ✓291ms4708kbC++141.6kb2024-10-25 18:37:242024-10-25 18:37:24

Judging History

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

  • [2024-10-25 18:37:24]
  • 评测
  • 测评结果:200
  • 用时:291ms
  • 内存:4708kb
  • [2024-10-25 18:37:24]
  • 提交

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)?0:*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,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)?0:*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(1ll*x%10ll);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;
}

详细

Subtask #1:

score: 100
Accepted

Test #1:

score: 100
Accepted
time: 88ms
memory: 4708kb

input:

10000000
896967986 130802234 887094666 568094891 748239194 711929842 372312543 686006525 956059692 860899398 417063272 570007040 115581686 542189159 401969174 594808621 820699857 872638650 255582244 127521410 980554295 751726524 281577584 300334858 196480864 355029002 239651226 481381323 875307591 4...

output:

5501256731861974

result:

points 1.0 input test passed

Subtask #2:

score: 100
Accepted

Test #2:

score: 100
Accepted
time: 291ms
memory: 3616kb

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