結果
| 問題 | No.406 鴨等間隔の法則 |
| コンテスト | |
| ユーザー |
👑 Nachia
|
| 提出日時 | 2021-05-09 14:43:26 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 144 bytes |
| 記録 | |
| コンパイル時間 | 223 ms |
| コンパイル使用メモリ | 85,168 KB |
| 実行使用メモリ | 88,516 KB |
| 最終ジャッジ日時 | 2026-04-06 21:46:53 |
| 合計ジャッジ時間 | 2,594 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 27 WA * 2 |
ソースコード
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 else "NO")
Nachia