結果

問題 No.406 鴨等間隔の法則
ユーザー Luoto-green
提出日時 2017-07-27 20:04:45
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
RE  
実行時間 -
コード長 151 bytes
コンパイル時間 98 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 21,736 KB
最終ジャッジ日時 2024-11-07 10:39:43
合計ジャッジ時間 3,410 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 RE * 2
other AC * 19 RE * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
A = sorted(map(int,input().split()))
x = [xi - xj for xi, xj in zip(A[:-1], A[1:])]
print(["NO","YES"][len(set(x))==1 and 0 not in s])
0