結果
問題 |
No.406 鴨等間隔の法則
|
ユーザー |
|
提出日時 | 2016-08-22 23:40:08 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 96 ms / 2,000 ms |
コード長 | 192 bytes |
コンパイル時間 | 453 ms |
コンパイル使用メモリ | 81,792 KB |
実行使用メモリ | 93,568 KB |
最終ジャッジ日時 | 2024-07-07 11:39:17 |
合計ジャッジ時間 | 3,506 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 29 |
ソースコード
n = int(input()) xl = sorted([int(i) for i in input().split()]) if len(set(xl)) != n: print("NO") exit(0) print("YES" if len(set([xl[i] - xl[i+1] for i in range(n-1)])) == 1 else "NO")