結果

問題 No.135 とりあえず1次元の問題
ユーザー Mario
提出日時 2018-04-30 12:08:52
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 104 ms / 5,000 ms
コード長 183 bytes
コンパイル時間 85 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 25,192 KB
最終ジャッジ日時 2024-06-27 23:50:38
合計ジャッジ時間 1,900 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

_ = 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)
0