QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#675615#1. I/O Testdaydreamwarrior200 ✓247ms4616kbC++141.4kb2024-10-25 18:58:102024-10-25 18:58:12

Judging History

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

  • [2024-10-25 18:58:12]
  • 评测
  • 测评结果:200
  • 用时:247ms
  • 内存:4616kb
  • [2024-10-25 18:58:10]
  • 提交

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>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>void out(T x,char c=0){
    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: 80ms
memory: 4616kb

input:

10000000
462839885 183553889 884948188 437918357 973804873 102992475 549115159 197043464 158298150 975608899 158597296 552568559 151402763 491969988 640903550 893729461 673875402 533375066 364519062 330800390 282271040 326689565 767207501 991786736 779860460 282132563 867003703 802874092 517380242 1...

output:

5501448336215703

result:

points 1.0 input test passed

Subtask #2:

score: 100
Accepted

Test #2:

score: 100
Accepted
time: 247ms
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