QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#672700#1. I/O Testdaydreamwarrior200 ✓258ms4556kbC++141.6kb2024-10-24 18:12:582024-10-24 18:12:59

Judging History

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

  • [2024-10-24 18:12:59]
  • 评测
  • 测评结果:200
  • 用时:258ms
  • 内存:4556kb
  • [2024-10-24 18:12:58]
  • 提交

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=buf;
        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;int 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=buf;
        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;int 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;
}

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 100
Accepted

Test #1:

score: 100
Accepted
time: 79ms
memory: 4556kb

input:

10000000
677250911 263904376 250872213 467955904 196486045 691855833 493446568 962937895 507201417 310657832 196493464 218675876 942571953 566734832 663580906 883114624 455365529 498119645 501087768 614600565 930374021 236558748 324503329 210667995 586858726 274616744 954706322 597530781 183388475 7...

output:

5499167181346787

result:

points 1.0 input test passed

Subtask #2:

score: 100
Accepted

Test #2:

score: 100
Accepted
time: 258ms
memory: 3544kb

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