QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#684161 | #1. I/O Test | daydreamwarrior | 200 ✓ | 237ms | 4716kb | C++14 | 2.1kb | 2024-10-28 11:02:40 | 2024-10-28 11:02:40 |
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 uranohoshi{signed stk[39],tp;char buf[1<<19],*p=buf;
void flush(){fwrite(buf,1,p-buf,stdout);p=buf;}
void operator()(char c){(*p++)=c;if(p-buf==1<<19)flush();}
void operator()(const char *s){while(*s)(*this)(*s++);(*this)('\n');}
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));
}~uranohoshi(){flush();}
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 uranohoshi{signed stk[39],tp;char buf[1<<19],*p=buf;
void flush(){fwrite(buf,1,p-buf,stdout);p=buf;}
void operator()(char c){(*p++)=c;if(p-buf==1<<19)flush();}
void operator()(const char *s){while(*s)(*this)(*s++);(*this)('\n');}
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));
}~uranohoshi(){flush();}
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: 79ms
memory: 4716kb
input:
10000000 674728835 819612310 616455856 940726461 860898977 136668890 429594390 830750852 641906501 775449055 947848426 831123218 457879703 915377889 220776663 407642946 241523101 536520073 337236658 243740148 712446020 437125153 329276616 120321012 716479263 687309689 341412928 183042617 493402404 4...
output:
5500265876235323
result:
points 1.0 input test passed
Subtask #2:
score: 100
Accepted
Test #2:
score: 100
Accepted
time: 237ms
memory: 4196kb
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