結果

問題 No.1586 Equal Array
ユーザー m1k__m1k__
提出日時 2021-07-08 22:28:26
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 95 ms / 1,000 ms
コード長 125 bytes
コンパイル時間 289 ms
コンパイル使用メモリ 86,952 KB
実行使用メモリ 86,864 KB
最終ジャッジ日時 2023-09-14 05:06:42
合計ジャッジ時間 3,253 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
71,076 KB
testcase_01 AC 65 ms
71,152 KB
testcase_02 AC 65 ms
71,476 KB
testcase_03 AC 66 ms
71,144 KB
testcase_04 AC 95 ms
84,432 KB
testcase_05 AC 80 ms
84,408 KB
testcase_06 AC 94 ms
86,700 KB
testcase_07 AC 87 ms
86,240 KB
testcase_08 AC 87 ms
86,240 KB
testcase_09 AC 87 ms
86,536 KB
testcase_10 AC 87 ms
86,500 KB
testcase_11 AC 67 ms
71,416 KB
testcase_12 AC 67 ms
71,096 KB
testcase_13 AC 86 ms
86,520 KB
testcase_14 AC 89 ms
86,444 KB
testcase_15 AC 84 ms
86,364 KB
testcase_16 AC 85 ms
86,512 KB
testcase_17 AC 63 ms
71,192 KB
testcase_18 AC 88 ms
86,488 KB
testcase_19 AC 84 ms
86,864 KB
testcase_20 AC 65 ms
71,156 KB
testcase_21 AC 62 ms
71,008 KB
testcase_22 AC 65 ms
71,272 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
A = [int(x) for x in input().split()]
m = min(A)
cnt = sum([a-m for a in A])
print('No' if cnt%N else 'Yes')
0