QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#672706#1. I/O Testdaydreamwarrior200 ✓248ms4560kbC++141.6kb2024-10-24 18:17:182024-10-24 18:17:18

Judging History

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

  • [2024-10-24 18:17:18]
  • 评测
  • 测评结果:200
  • 用时:248ms
  • 内存:4560kb
  • [2024-10-24 18:17:18]
  • 提交

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;
}

詳細信息

Subtask #1:

score: 100
Accepted

Test #1:

score: 100
Accepted
time: 85ms
memory: 4560kb

input:

10000000
766383298 371819180 466166075 913891512 972746436 502633136 470338602 305739367 244357669 336315436 596186841 166542529 619743661 111359065 687334365 583630421 360443546 488338065 154687680 540043478 521948434 436908204 242917098 999867367 653798955 103859056 819679148 892595330 240923125 4...

output:

5500034167974522

result:

points 1.0 input test passed

Subtask #2:

score: 100
Accepted

Test #2:

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

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