QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#684066 | #1. I/O Test | daydreamwarrior | 100 | 82ms | 4704kb | C++14 | 2.1kb | 2024-10-28 09:50:36 | 2024-10-28 09:50:36 |
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)?-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;
struct fasto{
char buf[1<<20],*p=buf;
void flush(){fwrite(buf,1,p-buf,stdout);p=0;}
void operator()(char c){(*p++)=c;if(p-buf==1<<20)flush();}
void operator()(const char *s){while(*s)(*this)(*s++);}
~fasto(){flush();}
signed stk[39],tp;
template<typename T>void operator()(T x){
if(x<0)(*this)('-'),x=-x;
do stk[tp++]=x%10;while(x/=10);
while(tp)(*this)(char(stk[--tp]^48));
}
template<typename T,typename...Args>
void operator()(T x,Args... args){(*this)(x);(*this)(args...);}
}out;
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;
struct fasto{
char buf[1<<20],*p=buf;
void flush(){fwrite(buf,1,p-buf,stdout);p=0;}
void operator()(char c){(*p++)=c;if(p-buf==1<<20)flush();}
void operator()(const char *s){while(*s)(*this)(*s++);}
~fasto(){flush();}
signed stk[39],tp;
template<typename T>void operator()(T x){
if(x<0)(*this)('-'),x=-x;
do stk[tp++]=x%10;while(x/=10);
while(tp)(*this)(char(stk[--tp]^48));
}
template<typename T,typename...Args>
void operator()(T x,Args... args){(*this)(x);(*this)(args...);}
}out;
int main(){
int n = in;
for(int k=1;k<=n;k++)
out(100000000,' ');
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Subtask #1:
score: 100
Accepted
Test #1:
score: 100
Accepted
time: 82ms
memory: 4704kb
input:
10000000 924243688 707070960 678478772 895770615 595314526 873013083 617742054 781479554 103684380 643487403 746703793 113235751 903999763 865482710 378976833 789605471 116356443 476355111 274640906 952926442 878897297 520373355 324277215 320935671 889614634 522108929 287841047 750978081 738520040 7...
output:
5500137727372255
result:
points 1.0 input test passed
Subtask #2:
score: 0
output_test Runtime Error
Test #2:
score: 0
output_test Runtime Error
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 ...