結果

問題 No.135 とりあえず1次元の問題
ユーザー kohei2019
提出日時 2021-08-02 22:34:41
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 90 ms / 5,000 ms
コード長 198 bytes
コンパイル時間 875 ms
コンパイル使用メモリ 82,304 KB
実行使用メモリ 91,216 KB
最終ジャッジ日時 2024-09-16 14:47:23
合計ジャッジ時間 2,747 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
lsX = list(set(map(int,input().split())))
if len(lsX) == 1:
    print(0)
    exit()
lsX.sort()
ans = 10**10
for i in range(len(lsX)-1):
    ans = min(ans,lsX[i+1]-lsX[i])
print(ans)
0