QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#54023#1. I/O TestZGY200 ✓336ms1820kbC++3.2kb2022-10-06 17:30:242022-10-06 17:30:26

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 17:30:26]
  • 评测
  • 测评结果:200
  • 用时:336ms
  • 内存:1820kb
  • [2022-10-06 17:30:24]
  • 提交

config.txt

10000000 10000000

input_test

#include <cstdio>
#define putchar putchar_unlocked
#define getchar getchar_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=='-';
    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();}//字符输入
inline void input(){}
template<typename... Ar,typename T>
void input(T&x,Ar&...y){//可变参数输入 
    read(x);
    input(y...);
}
template<typename T>
void unsigned_write(T&&/*模板的转发引用*/x){//无符号整数输出 
    if(x>9)unsigned_write(x/10);
    putchar(x%10^48);
} 
template<typename T>
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]);}//字符串输出 
inline void print(){}
template<typename... Ar,typename T>
void print(const T&x,Ar&&...y){//可变参数输出 
    write(x);
    print(y...);
}
int n;
long long s,h;
int main()
{
	unsigned_read(n);
	for(int i=1;i<=n;i++)unsigned_read(h),s+=h;
	print(s);
	return 0;
}

output_test

#include <cstdio>
#define putchar putchar_unlocked
#define getchar getchar_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=='-';
    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();}//字符输入
inline void input(){}
template<typename... Ar,typename T>
void input(T&x,Ar&...y){//可变参数输入 
    read(x);
    input(y...);
}
template<typename T>
void unsigned_write(T&&/*模板的转发引用*/x){//无符号整数输出 
    if(x>9)unsigned_write(x/10);
    putchar(x%10^48);
} 
template<typename T>
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]);}//字符串输出 
inline void print(){}
template<typename... Ar,typename T>
void print(const T&x,Ar&&...y){//可变参数输出 
    write(x);
    print(y...);
}
int n;
int main()
{
	unsigned_read(n);
	while(n--)puts("102947262");
	return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 100
Accepted

Test #1:

score: 100
Accepted
time: 336ms
memory: 1820kb

input:

10000000
387919883 735580269 235041834 490740530 210812282 802280947 815433900 284777662 497724427 376792605 186695485 569297465 726431286 917846393 444194810 151922709 617310232 487720747 136886671 500372781 437043634 754055186 467993123 982639348 938998278 582921435 989621686 312644319 884493244 5...

output:

5499017169108507

result:

points 1.0 input test passed

Subtask #2:

score: 100
Accepted

Test #2:

score: 100
Accepted
time: 299ms
memory: 1764kb

input:

10000000

output:

102947262
102947262
102947262
102947262
102947262
102947262
102947262
102947262
102947262
102947262
102947262
102947262
102947262
102947262
102947262
102947262
102947262
102947262
102947262
102947262
102947262
102947262
102947262
102947262
102947262
102947262
102947262
102947262
102947262
102947262
...

result:

points 1.0 output test passed