QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#479013#1. I/O Testdaydreamwarrior200 ✓193ms3688kbC++171.6kb2024-07-15 13:56:522024-07-15 13:56:52

Judging History

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

  • [2024-07-15 13:56:52]
  • 评测
  • 测评结果:200
  • 用时:193ms
  • 内存:3688kb
  • [2024-07-15 13:56:52]
  • 提交

config.txt

10000000 10000000

input_test

#include <iostream>
#include <cstring>
#include <algorithm>
using namespace std;

namespace fastio{
    struct{operator char(){return getchar_unlocked();}
        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;short stk[39],tp;
    inline void out(char c){putchar_unlocked(c);}
    template<typename T>inline void out(T x,char c=0){
        if(x<0)out('-'),x=-x;
        do stk[tp++]=x%10;while(x/=10);
        while(tp)out(char(stk[--tp]^48));
        if(c)out(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{operator char(){return getchar_unlocked();}
        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;short stk[39],tp;
    inline void out(char c){putchar_unlocked(c);}
    template<typename T>inline void out(T x,char c=0){
        if(x<0)out('-'),x=-x;
        do stk[tp++]=x%10;while(x/=10);
        while(tp)out(char(stk[--tp]^48));
        if(c)out(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: 174ms
memory: 3500kb

input:

10000000
454454449 732544580 906544978 840986260 572724823 617026420 791217389 317833516 970708371 764846749 596014433 225111646 708687288 661209894 668708900 282177814 797620820 696449656 938827553 335484817 644439953 571993611 237845880 299936683 136843338 164434458 622221185 606203071 703762316 7...

output:

5501446258628010

result:

points 1.0 input test passed

Subtask #2:

score: 100
Accepted

Test #2:

score: 100
Accepted
time: 193ms
memory: 3688kb

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