結果
問題 | No.406 鴨等間隔の法則 |
ユーザー |
👑 ![]() |
提出日時 | 2021-05-09 14:44:28 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 86 ms / 2,000 ms |
コード長 | 159 bytes |
コンパイル時間 | 294 ms |
コンパイル使用メモリ | 82,176 KB |
実行使用メモリ | 87,168 KB |
最終ジャッジ日時 | 2024-09-18 20:51:52 |
合計ジャッジ時間 | 3,326 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 29 |
ソースコード
N = int(input()) X = sorted([int(a) for a in input().split()]) D = set([r-l for l,r in zip(X[:-1],X[1:])]) print("YES" if len(D) == 1 and 0 not in D else "NO")