結果

問題 No.2451 Redistribute Integers
ユーザー YwestbuilderkYwestbuilderk
提出日時 2024-01-22 22:02:50
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 194 bytes
コンパイル時間 678 ms
コンパイル使用メモリ 67,292 KB
実行使用メモリ 6,676 KB
最終ジャッジ日時 2024-01-22 22:02:55
合計ジャッジ時間 5,228 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
6,676 KB
testcase_01 AC 2 ms
6,676 KB
testcase_02 AC 2 ms
6,676 KB
testcase_03 AC 2 ms
6,676 KB
testcase_04 AC 230 ms
6,676 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 2 ms
6,676 KB
testcase_08 AC 156 ms
6,676 KB
testcase_09 AC 2 ms
6,676 KB
testcase_10 AC 2 ms
6,676 KB
testcase_11 AC 2 ms
6,676 KB
testcase_12 AC 70 ms
6,676 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 94 ms
6,676 KB
testcase_17 AC 152 ms
6,676 KB
testcase_18 WA -
testcase_19 AC 17 ms
6,676 KB
testcase_20 AC 164 ms
6,676 KB
testcase_21 AC 205 ms
6,676 KB
権限があれば一括ダウンロードができます

ソースコード

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