QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#772632#1. I/O Testliuzhenhao09Compile Error//C++14590b2024-11-22 20:55:462024-11-22 20:55:46

Judging History

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

  • [2024-11-22 20:55:46]
  • 评测
  • [2024-11-22 20:55:46]
  • 提交

config.txt


input_test

#include<bits/stdc++.h>
#define int long long
using namespace std; 
const int INF = 1e16 + 7;
char buf[1<<21],*p1,*p2;
#define gc() (p1 == p2 && (p2 = (p1 = buf) + fread(buf,1,1<<20,stdin),p1 == p2) ? 0 : *p1++)
template <typename T>
inline void read(T& x){
	x = 0;
	int f = 1;
	char ch = gc();
	while(!isdigit(ch)){
		if(ch == '-') f = -1;
		ch = gc();
	}
	while(isdigit(ch)){
		x = (x << 1) + (x << 3) + (ch ^ 48);
		ch = gc();
	}
	x *= f;
}
int n,x,s = 0;
signed main(){
	read(n);
	for(int i = 1; i <= n; i++) read(x),s += x;
	printf("%lld",s);
    return 0;
}

output_test


Details

Invalid Configuration File: failed to read Nin and Nout