結果

問題 No.2451 Redistribute Integers
ユーザー Ashnu B
提出日時 2024-02-04 03:52:30
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 245 bytes
コンパイル時間 1,722 ms
コンパイル使用メモリ 168,268 KB
実行使用メモリ 7,296 KB
最終ジャッジ日時 2024-06-11 11:09:04
合計ジャッジ時間 4,239 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 13 WA * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;
int main(){
	long long n;
	cin>>n;
	vector<long long>a(n);
	for(int i=0;i<n;i++) cin>>a[i];
	long long sum=accumulate(a.begin(),a.end(),0LL);
	if(sum%n==0) cout<<"Yes"<<endl;
	else cout<<"No"<<endl;
}
0