QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#478984#1. I/O Testdaydreamwarrior200 ✓185ms3628kbC++171.5kb2024-07-15 13:29:092024-07-15 13:29:10

Judging History

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

  • [2024-07-15 13:29:10]
  • 评测
  • 测评结果:200
  • 用时:185ms
  • 内存:3628kb
  • [2024-07-15 13:29:09]
  • 提交

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;
    void out(char c){putchar_unlocked(c);}
    template<typename T>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;
    void out(char c){putchar_unlocked(c);}
    template<typename T>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: 161ms
memory: 3564kb

input:

10000000
687287538 236036574 268564531 219703077 647997686 191705225 244308107 528889336 333935184 865632579 609678415 719139280 464637611 753122561 290550579 659404947 981423101 383381581 980901425 717747042 831869077 677812903 427251904 488824644 757302726 177993418 205213681 877810025 831991430 1...

output:

5500233699980262

result:

points 1.0 input test passed

Subtask #2:

score: 100
Accepted

Test #2:

score: 100
Accepted
time: 185ms
memory: 3628kb

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