結果

問題 No.2451 Redistribute Integers
ユーザー aaaaaaaaaa2230aaaaaaaaaa2230
提出日時 2023-09-01 22:38:03
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 254 ms / 2,000 ms
コード長 173 bytes
コンパイル時間 871 ms
コンパイル使用メモリ 86,984 KB
実行使用メモリ 174,028 KB
最終ジャッジ日時 2023-09-01 22:38:12
合計ジャッジ時間 5,615 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,572 KB
testcase_01 AC 68 ms
71,204 KB
testcase_02 AC 70 ms
71,032 KB
testcase_03 AC 68 ms
71,040 KB
testcase_04 AC 242 ms
158,728 KB
testcase_05 AC 70 ms
71,240 KB
testcase_06 AC 69 ms
71,420 KB
testcase_07 AC 69 ms
71,416 KB
testcase_08 AC 192 ms
149,588 KB
testcase_09 AC 67 ms
71,332 KB
testcase_10 AC 67 ms
71,428 KB
testcase_11 AC 69 ms
71,348 KB
testcase_12 AC 130 ms
101,880 KB
testcase_13 AC 240 ms
174,028 KB
testcase_14 AC 209 ms
158,024 KB
testcase_15 AC 146 ms
113,024 KB
testcase_16 AC 169 ms
104,820 KB
testcase_17 AC 211 ms
167,520 KB
testcase_18 AC 193 ms
145,864 KB
testcase_19 AC 91 ms
83,072 KB
testcase_20 AC 171 ms
136,904 KB
testcase_21 AC 254 ms
165,216 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
A = list(map(int,input().split()))
if sum(A)%n:
    print("No")
    exit()

m = [a%n for a in A]
if len(set(m)) == 1:
    print("Yes")
else:
    print("No")
0