QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#675639 | #1. I/O Test | daydreamwarrior | 200 ✓ | 272ms | 4704kb | C++14 | 1.4kb | 2024-10-25 19:02:11 | 2024-10-25 19:02:11 |
Judging History
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>inline 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>inline 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);
putchar(c);
}
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: 85ms
memory: 4704kb
input:
10000000 632558705 768748066 842186033 966594569 347868659 478296837 656824831 647738818 484929663 253062520 965157403 884704618 561155470 426440515 572867556 503823095 399942808 994797685 991034246 237458652 791399957 450789483 199301912 324678541 972495599 921319021 386073209 607346367 443563455 4...
output:
5500106337111708
result:
points 1.0 input test passed
Subtask #2:
score: 100
Accepted
Test #2:
score: 100
Accepted
time: 272ms
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