QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#687017 | #1. I/O Test | daydreamwarrior | 100 | 93ms | 3756kb | C++14 | 1.5kb | 2024-10-29 16:47:52 | 2024-10-29 16:47:52 |
Judging History
config.txt
10000000 0
input_test
#include <iostream>
#include <cstring>
#include <algorithm>
using namespace std;
struct{char buf[1<<17],*l=buf,*r=l;
operator char(){return l==r&&(r=(l=buf)+fread(buf,1,1<<17,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;
}
Details
Tip: Click on the bar to expand more detailed information
Subtask #1:
score: 100
Accepted
Test #1:
score: 100
Accepted
time: 93ms
memory: 3756kb
input:
10000000 218570756 798207585 928492742 567216574 430222845 510252752 412523532 386061469 157624613 336587597 719537572 926492655 242965672 976955879 302060782 137333816 174764277 659654576 318946948 871333665 876696281 181485448 146768539 218017781 299159958 513495335 962602789 493723559 279821009 4...
output:
5501262791470107
result:
points 1.0 input test passed
Subtask #2:
score: 0
Skipped