QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#54079#1. I/O TestZGY110 364ms1820kbC++3.0kb2022-10-06 20:39:352022-10-06 20:39:35

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 20:39:35]
  • 评测
  • 测评结果:110
  • 用时:364ms
  • 内存:1820kb
  • [2022-10-06 20:39:35]
  • 提交

config.txt

1000000 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=='-';
    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);
    len=1;
    while((x[len]=getchar())>32)len++;
    x[len]=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){for(int i=0;x[i];++i)putchar(x[i]);}//字符串输出 
template<typename... Ar>
inline void print(const Ar&...x){int t[]{(write(x),0)...};}//可变参数输出
long long s,h;
int n;
int main(){//使用实例 
   input(n);
	while(n--)input(h),s+=h;
	print(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=='-';
    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);
    len=1;
    while((x[len]=getchar())>32)len++;
    x[len]=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){for(int i=0;x[i];++i)putchar(x[i]);}//字符串输出 
template<typename... Ar>
inline void print(const Ar&...x){int t[]{(write(x),0)...};}//可变参数输出
int main(){//使用实例 
    int n;
    input(n);
    while(n--)print("114514191 ");
    return 0;
}

詳細信息

Subtask #1:

score: 10
Acceptable Answer

Test #1:

score: 10
Acceptable Answer
time: 34ms
memory: 1820kb

input:

1000000
742774608 514027653 719180020 915808655 711950635 338243145 493265392 333024978 543584954 844165219 161470754 961485298 656231443 123314672 193588397 646597939 428263985 719512353 694173304 780709426 694455726 776999810 896461466 728187183 705979888 797355512 222577874 910442387 284372894 74...

output:

549959435125434

result:

points 0.10 input test passed

Subtask #2:

score: 100
Accepted

Test #2:

score: 100
Accepted
time: 364ms
memory: 1816kb

input:

10000000

output:

114514191 114514191 114514191 114514191 114514191 114514191 114514191 114514191 114514191 114514191 114514191 114514191 114514191 114514191 114514191 114514191 114514191 114514191 114514191 114514191 114514191 114514191 114514191 114514191 114514191 114514191 114514191 114514191 114514191 114514191 ...

result:

points 1.0 output test passed