QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#675822#1. I/O Testdaydreamwarrior200 ✓269ms4552kbC++141.6kb2024-10-25 19:28:422024-10-25 19:28:42

Judging History

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

  • [2024-10-25 19:28:42]
  • 评测
  • 测评结果:200
  • 用时:269ms
  • 内存:4552kb
  • [2024-10-25 19:28:42]
  • 提交

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

詳細信息

Subtask #1:

score: 100
Accepted

Test #1:

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

input:

10000000
441765855 987943002 770335611 919495594 651878165 489150465 959874528 908700108 752919773 798479874 777919178 764995542 150208650 594950569 406394312 584541808 792998947 695615918 411778652 790687556 848057023 611334115 483892364 686195823 869302452 689484722 578849123 905498390 599748834 7...

output:

5499877220047927

result:

points 1.0 input test passed

Subtask #2:

score: 100
Accepted

Test #2:

score: 100
Accepted
time: 269ms
memory: 3532kb

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