QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#340279#1. I/O TestBYR_KKK0 203ms3680kbC++141.6kb2024-02-28 20:10:462024-02-28 20:10:46

Judging History

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

  • [2024-02-28 20:10:46]
  • 评测
  • 测评结果:0
  • 用时:203ms
  • 内存:3680kb
  • [2024-02-28 20:10:46]
  • 提交

config.txt

10000000 0

input_test

// LUOGU_RID: 148461593
#include<bits/stdc++.h>
#include<ext/pb_ds/assoc_container.hpp>
#include<ext/pb_ds/tree_policy.hpp>
#include<ext/pb_ds/hash_policy.hpp>
#define gt getchar
#define pt putchar
#define fst first
#define scd second
#define SZ(s) ((int)s.size())
#define all(s) s.begin(),s.end()
#define pb push_back
#define eb emplace_back
typedef long long ll;
typedef double db;
typedef long double ld;
typedef unsigned long long ull;
typedef unsigned int uint;
const int N=5e6+5;
const int R=1e5+5;
const int M=5e6+5;
const ll inf=1e18;
using namespace std;
using namespace __gnu_pbds;
typedef pair<int,int> pii;
template<class T,class I> inline void chkmax(T &a,I b){a=max(a,(T)b);}
template<class T,class I> inline void chkmin(T &a,I b){a=min(a,(T)b);}
inline bool __(char ch){return ch>=48&&ch<=57;}
template<class T> inline void read(T &x){
	x=0;bool sgn=0;static char ch=gt();
	while(!__(ch)&&ch!=EOF) sgn|=(ch=='-'),ch=gt();
	while(__(ch)) x=(x<<1)+(x<<3)+(ch&15),ch=gt();
	if(sgn) x=-x;
}
template<class T,class ...I> inline void read(T &x,I &...x1){
	read(x);
	read(x1...);
}
template<class T> inline void print(T x){
	static char stk[70];short top=0;
	if(x<0) pt('-');
	do{stk[++top]=x>=0?(x%10+48):(-(x%10)+48),x/=10;}while(x);
	while(top) pt(stk[top--]);
}
template<class T> inline void printsp(T x){
	print(x);
	putchar(' ');
}
template<class T> inline void println(T x){
	print(x);
	putchar('\n');
}

signed main(){
	int n;
	read(n);
	int sum=0;
	while(n--){
		int a;
		read(a);
		sum+=a;
	}
	printf("%d",sum);
	return 0;
}

output_test


Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 0
Wrong Answer

Test #1:

score: 0
Wrong Answer
time: 203ms
memory: 3680kb

input:

10000000
994464331 887042197 226353710 438785115 274991780 742486296 251037462 959160293 114391068 985295435 415822597 948842372 781822898 150592548 417782891 449474511 891731858 757735316 811563993 761826770 503678596 298391888 271748918 785344354 367517954 892021451 166293715 450450451 603206667 8...

output:

-669020060

result:

wrong answer expected 5500675616116836, found -669020060

Subtask #2:

score: 0
Skipped