QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#687016 | #1. I/O Test | daydreamwarrior | 100 | 79ms | 3608kb | C++14 | 1.5kb | 2024-10-29 16:47:39 | 2024-10-29 16:47:39 |
Judging History
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: 79ms
memory: 3608kb
input:
10000000 214235299 581102400 321998443 733457638 133433028 306911306 661256145 239228295 836957733 354744820 851986223 359151188 646932539 852080909 970325628 303182311 517415918 194607379 794790699 314440589 549257595 121759917 121617365 949485466 785335671 402753950 736137691 663275733 217396381 7...
output:
5502067363528282
result:
points 1.0 input test passed
Subtask #2:
score: 0
Skipped