QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#40748 | #1. I/O Test | LQ_is_my_son | Compile Error | / | / | C++23 | 1.9kb | 2022-07-26 08:09:30 | 2022-07-26 08:09:32 |
Judging History
你现在查看的是最新测评结果
- [2023-08-10 23:21:45]
- System Update: QOJ starts to keep a history of the judgings of all the submissions.
- [2022-07-26 08:09:32]
- 评测
- 测评结果:Compile Error
- 用时:0ms
- 内存:0kb
- [2022-07-26 08:09:30]
- 提交
config.txt
input_test
#include<cstdio>
#define R register
static char buf[10000000],*paa=buf,*pddd=buf;
static char buf2[10000000],*pppp=buf2;
#define getchar() paa==pddd&&(pddd=(paa=buf)+fread(buf,1,10000000,stdin),paa==pddd)?EOF:*paa++
inline void pc(char ch){
if(pppp-buf2==10000000) fwrite(buf2,1,10000000,stdout),pppp=buf2;
*pppp++=ch;
}
inline void pcc(){
fwrite(buf2,1,pppp-buf2,stdout);
pppp=buf2;
}
inline unsigned int read(void){
//int w=1;
register unsigned int x(0);register char c(getchar());
while(c<'0'||c>'9'){c=getchar();}
while(c>='0'&&c<='9')x=(x<<1)+(x<<3)+(c^48),c=getchar();
return x;
}
inline void write(int x){
if(x<0) pc('-'),x=-x;
static unsigned int sta[20];int top=0;
do{sta[top++]=x%10,x/=10;}while(x);
while(top) pc(sta[--top]+48);
}
int main()
{
R unsigned int n;
n=read();
R long long sum=0;
for(R unsigned int i=1;i<=n;++i)
{
sum+=read();
}
printf("%lld",sum);
}
output_test
#include<cstdio>
#define R register
static char buf[10000000],*paa=buf,*pddd=buf;
static char buf2[10000000],*pppp=buf2;
#define getchar() paa==pddd&&(pddd=(paa=buf)+fread(buf,1,10000000,stdin),paa==pddd)?EOF:*paa++
inline void pc(char ch){
if(pppp-buf2==10000000) fwrite(buf2,1,10000000,stdout),pppp=buf2;
*pppp++=ch;
}
inline void pcc(){
fwrite(buf2,1,pppp-buf2,stdout);
pppp=buf2;
}
inline unsigned int read(void){
//int w=1;
register unsigned int x(0);register char c(getchar());
while(c<'0'||c>'9'){c=getchar();}
while(c>='0'&&c<='9')x=(x<<1)+(x<<3)+(c^48),c=getchar();
return x;
}
inline void write(int x){
if(x<0) pc('-'),x=-x;
static unsigned int sta[20];int top=0;
do{sta[top++]=x%10,x/=10;}while(x);
while(top) pc(sta[--top]+48);
}
int main()
{
R unsigned int n;
n=read();
for(R unsigned int i=1;i<=n;++i)
{
pc('1');pc('0');pc('0');pc('0');pc('0');pc('0');pc('0');pc('0');pc('0');
pc(' ');
}
pcc();
}
详细
Invalid Configuration File: failed to read Nin and Nout