QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#687036#1. I/O Testdaydreamwarrior100 87ms3756kbC++141.6kb2024-10-29 16:52:002024-10-29 16:52:01

Judging History

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

  • [2024-10-29 16:52:01]
  • 评测
  • 测评结果:100
  • 用时:87ms
  • 内存:3756kb
  • [2024-10-29 16:52:00]
  • 提交

config.txt

10000000 0

input_test

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

struct{char buf[1<<17],*l=buf,*r=l;
operator char(){return l==r&&(r=(l=buf)+fread(buf,1,1<<17,stdin),l==r)?-1:*l++;}
template<typename T>operator T(){
    T x=0;char f=0,c;
    do if((c=*this)=='-')f=1;while(c<'0'||c>'9');
    while(c>='0'&&c<='9')x=x*10+(c^48),c=*this;
    return f?-x:x;
}}in;void out(char c){putchar(c);}
template<typename T>void out(T x){
    static signed stk[39],tp;
    if(x<0)out('-'),x=-x;
    do stk[tp++]=x%10;while(x/=10);
    while(tp)putchar(stk[--tp]^48);
}template<typename T,typename...Args>
void out(T x,Args...args){out(x);out(args...);}


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<<17],*l=buf,*r=l;
operator char(){return l==r&&(r=(l=buf)+fread(buf,1,1<<17,stdin),l==r)?-1:*l++;}
template<typename T>operator T(){
    T x=0;char f=0,c;
    do if((c=*this)=='-')f=1;while(c<'0'||c>'9');
    while(c>='0'&&c<='9')x=x*10+(c^48),c=*this;
    return f?-x:x;
}}in;void out(char c){putchar(c);}
template<typename T>void out(T x){
    static signed stk[39],tp;
    if(x<0)out('-'),x=-x;
    do stk[tp++]=x%10;while(x/=10);
    while(tp)putchar(stk[--tp]^48);
}template<typename T,typename...Args>
void out(T x,Args...args){out(x);out(args...);}


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: 87ms
memory: 3756kb

input:

10000000
286616160 676168414 562076658 512120766 874527155 604643093 279458721 514070283 886658886 131327914 561487268 835440562 322294034 356622544 378765401 710522662 923913330 635532020 756700757 463514408 148661733 637552848 802678924 883488435 444853959 753691750 837705386 717223495 568534669 9...

output:

5500535576795878

result:

points 1.0 input test passed

Subtask #2:

score: 0
Skipped