結果

問題 No.2451 Redistribute Integers
ユーザー sepa38
提出日時 2023-09-01 21:40:35
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 192 bytes
コンパイル時間 234 ms
コンパイル使用メモリ 82,048 KB
実行使用メモリ 184,904 KB
最終ジャッジ日時 2024-06-11 11:01:29
合計ジャッジ時間 3,932 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 14 WA * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
a = list(map(int, input().split()))
m = min(a)
for i in range(n):
  a[i] -= m
if sorted(a) == [i for i in range(n)]:
  print("No")
else:
  print("No" if sum(a) % n else "Yes")
0