結果
問題 |
No.406 鴨等間隔の法則
|
ユーザー |
👑 ![]() |
提出日時 | 2021-05-09 14:43:26 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 144 bytes |
コンパイル時間 | 181 ms |
コンパイル使用メモリ | 81,736 KB |
実行使用メモリ | 86,656 KB |
最終ジャッジ日時 | 2024-09-18 20:51:14 |
合計ジャッジ時間 | 3,384 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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")