結果

問題 No.1586 Equal Array
ユーザー m1k__m1k__
提出日時 2021-07-08 22:28:26
言語 PyPy3
(7.3.8)
結果
AC  
実行時間 118 ms / 1,000 ms
コード長 125 bytes
コンパイル時間 642 ms
使用メモリ 91,052 KB
最終ジャッジ日時 2023-02-01 18:36:50
合計ジャッジ時間 4,469 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
使用メモリ
testcase_00 AC 88 ms
75,532 KB
testcase_01 AC 88 ms
75,808 KB
testcase_02 AC 87 ms
75,740 KB
testcase_03 AC 88 ms
75,528 KB
testcase_04 AC 105 ms
88,908 KB
testcase_05 AC 105 ms
88,912 KB
testcase_06 AC 113 ms
90,684 KB
testcase_07 AC 113 ms
91,052 KB
testcase_08 AC 113 ms
90,684 KB
testcase_09 AC 112 ms
90,684 KB
testcase_10 AC 114 ms
90,680 KB
testcase_11 AC 91 ms
75,712 KB
testcase_12 AC 93 ms
75,816 KB
testcase_13 AC 116 ms
90,960 KB
testcase_14 AC 118 ms
91,040 KB
testcase_15 AC 117 ms
90,652 KB
testcase_16 AC 115 ms
91,036 KB
testcase_17 AC 89 ms
75,416 KB
testcase_18 AC 115 ms
90,716 KB
testcase_19 AC 118 ms
91,008 KB
testcase_20 AC 90 ms
75,732 KB
testcase_21 AC 89 ms
75,392 KB
testcase_22 AC 88 ms
75,480 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