QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#479013 | #1. I/O Test | daydreamwarrior | 200 ✓ | 193ms | 3688kb | C++17 | 1.6kb | 2024-07-15 13:56:52 | 2024-07-15 13:56:52 |
Judging History
config.txt
10000000 10000000
input_test
#include <iostream>
#include <cstring>
#include <algorithm>
using namespace std;
namespace fastio{
struct{operator char(){return getchar_unlocked();}
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;short stk[39],tp;
inline void out(char c){putchar_unlocked(c);}
template<typename T>inline void out(T x,char c=0){
if(x<0)out('-'),x=-x;
do stk[tp++]=x%10;while(x/=10);
while(tp)out(char(stk[--tp]^48));
if(c)out(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;
}
output_test
#include <iostream>
#include <cstring>
#include <algorithm>
using namespace std;
namespace fastio{
struct{operator char(){return getchar_unlocked();}
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;short stk[39],tp;
inline void out(char c){putchar_unlocked(c);}
template<typename T>inline void out(T x,char c=0){
if(x<0)out('-'),x=-x;
do stk[tp++]=x%10;while(x/=10);
while(tp)out(char(stk[--tp]^48));
if(c)out(c);
}
}using fastio::in;using fastio::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: 174ms
memory: 3500kb
input:
10000000 454454449 732544580 906544978 840986260 572724823 617026420 791217389 317833516 970708371 764846749 596014433 225111646 708687288 661209894 668708900 282177814 797620820 696449656 938827553 335484817 644439953 571993611 237845880 299936683 136843338 164434458 622221185 606203071 703762316 7...
output:
5501446258628010
result:
points 1.0 input test passed
Subtask #2:
score: 100
Accepted
Test #2:
score: 100
Accepted
time: 193ms
memory: 3688kb
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