結果
| 問題 | No.406 鴨等間隔の法則 |
| コンテスト | |
| ユーザー |
👑 Nachia
|
| 提出日時 | 2021-05-09 14:44:28 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 76 ms / 2,000 ms |
| コード長 | 159 bytes |
| 記録 | |
| コンパイル時間 | 243 ms |
| コンパイル使用メモリ | 85,960 KB |
| 実行使用メモリ | 88,064 KB |
| 最終ジャッジ日時 | 2026-04-06 21:47:49 |
| 合計ジャッジ時間 | 3,256 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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")
Nachia