結果

問題 No.135 とりあえず1次元の問題
ユーザー ondy_candy
提出日時 2016-07-25 03:38:09
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 96 ms / 5,000 ms
コード長 212 bytes
コンパイル時間 236 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 23,004 KB
最終ジャッジ日時 2024-06-11 06:52:29
合計ジャッジ時間 1,746 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

# -*- coding: utf-8 -*-
n = int(input())
x = [int(i) for i in input().split()]

u = list(set(x))
s = sorted(u)

result = 0
if len(s) >= 2:
    result = min([s[i+1] - s[i] for i in range(len(s)-1)])
print(result)
0