QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#479073 | #1. I/O Test | daydreamwarrior | 100 | 91ms | 7588kb | C++17 | 1.5kb | 2024-07-15 14:43:45 | 2024-07-15 14:43:45 |
Judging History
config.txt
10000000 0
input_test
#include <iostream>
#include <cstring>
#include <algorithm>
using namespace std;
namespace fastio{
struct{char buf[1024*1024*4],*p=buf;
operator char(){if(p==buf+sizeof(buf))cin.read(buf,sizeof(buf)),p=buf;return *p++;}
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{template<typename T>operator T(){
T x=0;char f=0,c=getchar();
while(c<'0'||c>'9'){if(c=='-')f=1;c=getchar();}
while(c>='0'&&c<='9'){x=x*10+(c^48);c=getchar();}
return f?-x:x;
}}in;int 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;
}
Details
Tip: Click on the bar to expand more detailed information
Subtask #1:
score: 100
Accepted
Test #1:
score: 100
Accepted
time: 91ms
memory: 7588kb
input:
10000000 506133879 202572009 919838862 334256368 658734577 512730796 469946758 732936449 286295502 935561149 536854236 772524099 941026029 334254883 535354435 514804118 408060806 601308273 658939071 444882528 443246893 258199111 117910825 112099895 893568834 900201166 703771026 952460719 920553251 8...
output:
5499071543714139
result:
points 1.0 input test passed
Subtask #2:
score: 0
Skipped