QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#54101#1. I/O TestZGY200 ✓444ms1812kbC++2.8kb2022-10-06 21:05:562022-10-06 21:06:04

Judging History

你现在查看的是最新测评结果

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2022-10-06 21:06:04]
  • 评测
  • 测评结果:200
  • 用时:444ms
  • 内存:1812kb
  • [2022-10-06 21:05:56]
  • 提交

config.txt

10000000 10000000

input_test

#include <cstdio>
#include <initializer_list>
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>
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;
}

詳細信息

Subtask #1:

score: 100
Accepted

Test #1:

score: 100
Accepted
time: 444ms
memory: 1812kb

input:

10000000
481612955 949255176 292766300 835136632 979265181 383288020 488817719 950274637 579437849 606226374 566422533 132547956 350800686 377294872 613092594 378931991 855567684 422721463 390102307 739494363 368459316 506226840 649970218 359212029 199352871 765023971 462782394 368705426 261978128 8...

output:

5499106174504063

result:

points 1.0 input test passed

Subtask #2:

score: 100
Accepted

Test #2:

score: 100
Accepted
time: 362ms
memory: 1736kb

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