QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#672709 | #1. I/O Test | daydreamwarrior | 0 | 269ms | 4628kb | C++14 | 1.6kb | 2024-10-24 18:19:41 | 2024-10-24 18:19:42 |
Judging History
config.txt
10000000 10000000
input_test
#include <iostream>
#include <cstring>
#include <algorithm>
using namespace std;
namespace fastio{
struct{char buf[1<<20],*l=buf,*r=l;
operator char(){if(l==r)r=(l=buf)+fread(buf,1,1<<20,stdin);return *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;signed stk[39],tp;
template<typename T>void out(T x,char c=0){
if(x<0)putchar('-'),x=-x;
do stk[tp++]=x%10;while(x/=10);
while(tp)putchar(stk[--tp]^48);
if(c)putchar(c);
}
}using fastio::in;using fastio::out;
int main(){
int n = in;
for(int k=1;k<=n;k++)
out(100000000,' ');
return 0;
}
output_test
#include <iostream>
#include <cstring>
#include <algorithm>
using namespace std;
namespace fastio{
struct{char buf[1<<20],*l=buf,*r=l;
operator char(){if(l==r)r=(l=buf)+fread(buf,1,1<<20,stdin);return *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;signed stk[39],tp;
template<typename T>void out(T x,char c=0){
if(x<0)putchar('-'),x=-x;
do stk[tp++]=x%10;while(x/=10);
while(tp)putchar(stk[--tp]^48);
if(c)putchar(c);
}
}using fastio::in;using fastio::out;
int main(){
int n = in;
long long ans = 0;
for(int k=1;k<=n;k++)
ans += (int)in;
out(ans);
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Subtask #1:
score: 0
Wrong Answer
Test #1:
score: 0
Wrong Answer
time: 269ms
memory: 4628kb
input:
10000000 545001320 706747800 361852572 476180368 625608301 762993984 866541274 378861549 430591323 909800609 242993979 814633028 202065739 336783509 164458822 796870331 455554581 323722003 736637849 619339987 785691716 117163573 425531327 370881853 103702248 777330062 696888159 523617059 520613623 9...
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:
wrong answer expected 5499036197357880, found 100000000
Subtask #2:
score: 0
output_test Runtime Error
Test #2:
score: 0
output_test Runtime Error
input:
10000000