QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#687020#1. I/O Testdaydreamwarrior100 82ms3744kbC++141.5kb2024-10-29 16:48:092024-10-29 16:48:10

Judging History

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

  • [2024-10-29 16:48:10]
  • 评测
  • 测评结果:100
  • 用时:82ms
  • 内存:3744kb
  • [2024-10-29 16:48:09]
  • 提交

config.txt

10000000 0

input_test

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

struct{char buf[1<<16],*l=buf,*r=l;
operator char(){return l==r&&(r=(l=buf)+fread(buf,1,1<<16,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<<20],*l=buf,*r=l;
operator char(){return l==r&&(r=(l=buf)+fread(buf,1,1<<20,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: 82ms
memory: 3744kb

input:

10000000
724691321 375208698 886195656 588414931 651258388 714854253 385164905 405320716 685191781 782739956 914552333 159732548 291404527 818608900 457146190 912948527 421887441 252156133 492763997 998055216 157800093 387981821 446130448 656325849 770923973 774866539 141960248 244821485 371739571 2...

output:

5501708817366255

result:

points 1.0 input test passed

Subtask #2:

score: 0
Skipped