結果
| 問題 |
No.406 鴨等間隔の法則
|
| コンテスト | |
| ユーザー |
310icecrystal
|
| 提出日時 | 2023-06-10 20:50:02 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 162 bytes |
| コンパイル時間 | 569 ms |
| コンパイル使用メモリ | 82,816 KB |
| 実行使用メモリ | 84,224 KB |
| 最終ジャッジ日時 | 2025-01-03 01:42:00 |
| 合計ジャッジ時間 | 3,820 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 27 WA * 2 |
ソースコード
N = int(input())
x = list(map(int,input().split()))
x.sort()
S = set()
for i in range(N-1):
S.add(x[i+1]-x[i])
if len(S) == 1:
print("YES")
else:
print("NO")
310icecrystal