QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#54106 | #1. I/O Test | ZGY | 200 ✓ | 282ms | 1836kb | C++ | 3.0kb | 2022-10-06 21:07:44 | 2022-10-06 21:07:46 |
Judging History
config.txt
10000000 10000000
input_test
#include <cstdio>
#include <initializer_list>
#define getchar getchar_unlocked
#define putchar putchar_unlocked
char ch;
bool fh;
int len;
template<typename T>
inline void read(T&x){//整数输入
fh=false;
while((ch=getchar())<48||ch>57)fh=ch==45;
x=ch^48;
while((ch=getchar())<58&&ch>47)x=(x<<1)+(x<<3)+(ch^48);
if(fh)x=-x;
}
template<typename T>
inline void unsigned_read(T&x){//无符号整数输入
while((ch=getchar())<48||ch>57);
x=ch^48;
while((ch=getchar())<58&&ch>47)x=(x<<1)+(x<<3)+(ch^48);
}
inline void read(char*x){//字符串输入
while((*x=getchar())<33);
while((*++x=getchar())>32);
*x=0;
}
inline void read(char&x){x=getchar();}//字符输入
template<typename... Ar>
inline void input(Ar&...x){int a[]{(read(x),0)...};}//可变参数输入
template<typename T>
inline void unsigned_write(T&&/*模板的转发引用*/x){//无符号整数输出
if(x>9)unsigned_write(x/10);
putchar(x%10^48);
}
template<typename T>
inline void write(T x){//整数输出
if(x<0){
putchar('-');
x=-x;
}
if(x>9)unsigned_write(x/10);
putchar(x%10^48);
}
inline void write(const char&x){putchar(x);}//字符输出
inline void write(const char*x){while(*x)putchar(*x++);}//字符串输出
template<typename... Ar>
inline void print(const Ar&...x){int t[]{(write(x),0)...};}//可变参数输出
long long s;
int n,h;
int main(){
read(n);
while(n--)read(h),s+=h;
write(s);
return 0;
}
output_test
#include <cstdio>
#include <initializer_list>
#define getchar getchar_unlocked
#define putchar putchar_unlocked
char ch;
bool fh;
int len;
template<typename T>
inline void read(T&x){//整数输入
fh=false;
while((ch=getchar())<48||ch>57)fh=ch==45;
x=ch^48;
while((ch=getchar())<58&&ch>47)x=(x<<1)+(x<<3)+(ch^48);
if(fh)x=-x;
}
template<typename T>
inline void unsigned_read(T&x){//无符号整数输入
while((ch=getchar())<48||ch>57);
x=ch^48;
while((ch=getchar())<58&&ch>47)x=(x<<1)+(x<<3)+(ch^48);
}
inline void read(char*x){//字符串输入
while((*x=getchar())<33);
while((*++x=getchar())>32);
*x=0;
}
inline void read(char&x){x=getchar();}//字符输入
template<typename... Ar>
inline void input(Ar&...x){int a[]{(read(x),0)...};}//可变参数输入
template<typename T>
inline void unsigned_write(T&&/*模板的转发引用*/x){//无符号整数输出
if(x>9)unsigned_write(x/10);
putchar(x%10^48);
}
template<typename T>
inline void write(T x){//整数输出
if(x<0){
putchar('-');
x=-x;
}
if(x>9)unsigned_write(x/10);
putchar(x%10^48);
}
inline void write(const char&x){putchar(x);}//字符输出
inline void write(const char*x){while(*x)putchar(*x++);}//字符串输出
template<typename... Ar>
inline void print(const Ar&...x){int t[]{(write(x),0)...};}//可变参数输出
int n;
int main(){
read(n);
while(n--)write("191981011 ");
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Subtask #1:
score: 100
Accepted
Test #1:
score: 100
Accepted
time: 282ms
memory: 1776kb
input:
10000000 810245164 679742142 355685923 953358067 567356557 154837461 649771031 351964029 689320105 236260657 986509035 565278333 657156560 741097298 301536883 470029864 329551128 552955619 526750249 552607787 932591371 672830108 283133252 375918435 398495215 866535245 712824245 531502417 850887817 1...
output:
5501334519110925
result:
points 1.0 input test passed
Subtask #2:
score: 100
Accepted
Test #2:
score: 100
Accepted
time: 229ms
memory: 1836kb
input:
10000000
output:
191981011 191981011 191981011 191981011 191981011 191981011 191981011 191981011 191981011 191981011 191981011 191981011 191981011 191981011 191981011 191981011 191981011 191981011 191981011 191981011 191981011 191981011 191981011 191981011 191981011 191981011 191981011 191981011 191981011 191981011 ...
result:
points 1.0 output test passed