結果
| 問題 |
No.135 とりあえず1次元の問題
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-04-30 12:10:04 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 183 bytes |
| コンパイル時間 | 1,378 ms |
| コンパイル使用メモリ | 76,388 KB |
| 実行使用メモリ | 88,256 KB |
| 最終ジャッジ日時 | 2024-06-27 23:50:48 |
| 合計ジャッジ時間 | 4,086 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 2 |
| other | RE * 22 |
ソースコード
_ = int(input())
points = sorted(set(map(int, input().split())))
dist = [points[n + 1] - points[n] for n in range(len(points) - 1)]
if dist:
print(min(dist))
else:
print(0)