QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#675624#1. I/O Testdaydreamwarrior200 ✓236ms4712kbC++141.4kb2024-10-25 19:00:132024-10-25 19:00:14

Judging History

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

  • [2024-10-25 19:00:14]
  • 评测
  • 测评结果:200
  • 用时:236ms
  • 内存:4712kb
  • [2024-10-25 19:00:13]
  • 提交

config.txt

10000000 10000000

input_test

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

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)?EOF:*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;
template<typename T>inline void out(T x,char c=0){
    static unsigned stk[39],tp;
    if(x<0)putchar('-'),x=-x;
    do stk[tp++]=x%10;while(x/=10);
    while(tp)putchar(stk[--tp]^48);
    if(c)putchar(c);
}

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;

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)?EOF:*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;
template<typename T>inline void out(T x,char c=0){
    static unsigned stk[39],tp;
    if(x<0)putchar('-'),x=-x;
    do stk[tp++]=x%10;while(x/=10);
    while(tp)putchar(stk[--tp]^48);
    if(c)putchar(c);
}

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: 88ms
memory: 4712kb

input:

10000000
766708338 871119458 865239368 469589242 715265087 391387106 721540113 861560091 987053336 497104693 838759263 723181852 507352194 371141892 846246230 426788624 894772829 235011340 207740021 560618377 325827811 443263739 882536280 947113984 289297160 496665892 743300712 417586004 531805618 7...

output:

5501186077119741

result:

points 1.0 input test passed

Subtask #2:

score: 100
Accepted

Test #2:

score: 100
Accepted
time: 236ms
memory: 3676kb

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