QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#684260#1. I/O Testdaydreamwarrior200 ✓195ms4632kbC++141.7kb2024-10-28 11:47:572024-10-28 11:47:58

Judging History

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

  • [2024-10-28 11:47:58]
  • 评测
  • 测评结果:200
  • 用时:195ms
  • 内存:4632kb
  • [2024-10-28 11:47:57]
  • 提交

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)?-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;
inline void out(char c){putchar_unlocked(c);}
inline void out(const char *s){while(*s)out(*s++);}
template<typename T>void inline out(T x){
    static signed stk[39],tp;
    if(x<0)out('-'),x=-x;
    do stk[tp++]=x%10;while(x/=10);
    while(tp)out(char(stk[--tp]^48));
}template<typename T,typename...Args>
inline 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;
inline void out(char c){putchar_unlocked(c);}
inline void out(const char *s){while(*s)out(*s++);}
template<typename T>void inline out(T x){
    static signed stk[39],tp;
    if(x<0)out('-'),x=-x;
    do stk[tp++]=x%10;while(x/=10);
    while(tp)out(char(stk[--tp]^48));
}template<typename T,typename...Args>
inline 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: 84ms
memory: 4632kb

input:

10000000
853071419 495887956 457602913 732486536 757741913 907274608 793709491 268395701 866880346 735294132 778943281 180046772 695615150 277798555 104203005 682654290 701372408 170024556 378065968 855345083 402948743 154602815 578985226 141143168 971586196 580267924 788886253 104868308 747204281 8...

output:

5498431455853592

result:

points 1.0 input test passed

Subtask #2:

score: 100
Accepted

Test #2:

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