QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#675631 | #1. I/O Test | daydreamwarrior | 200 ✓ | 268ms | 4620kb | C++14 | 1.4kb | 2024-10-25 19:00:43 | 2024-10-25 19:00:44 |
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);
if(c)putchar(c);
}
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: 4620kb
input:
10000000 606947140 387690557 519332688 276062035 463929011 260699479 253688513 340798325 530147875 711335254 135504135 335979550 336028388 588524045 384622391 887693308 756798105 268547159 858193992 706540369 557379093 128060556 917688842 922865013 325071892 946224859 441321225 457887959 511432998 8...
output:
5499410179297065
result:
points 1.0 input test passed
Subtask #2:
score: 100
Accepted
Test #2:
score: 100
Accepted
time: 268ms
memory: 3672kb
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