結果

問題 No.135 とりあえず1次元の問題
ユーザー Mario
提出日時 2018-04-30 12:10:32
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 89 ms / 5,000 ms
コード長 183 bytes
コンパイル時間 217 ms
コンパイル使用メモリ 82,176 KB
実行使用メモリ 92,556 KB
最終ジャッジ日時 2024-06-27 23:50:53
合計ジャッジ時間 2,036 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
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