結果

問題 No.2451 Redistribute Integers
ユーザー Ywestbuilderk
提出日時 2024-01-22 22:02:50
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 194 bytes
コンパイル時間 771 ms
コンパイル使用メモリ 65,408 KB
最終ジャッジ日時 2025-02-18 22:10:55
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 13 WA * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
using namespace std;

int main(){
	int n;
	cin >> n;
	int ans = 0;
	for(int i = 0;i < n;i++){int no;cin >> no;ans += no;}
	if(ans % n == 0)cout << "Yes";
	else cout << "No";
}
0