結果

問題 No.135 とりあえず1次元の問題
ユーザー convexineq
提出日時 2020-12-08 03:44:25
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 95 ms / 5,000 ms
コード長 119 bytes
コンパイル時間 214 ms
コンパイル使用メモリ 81,904 KB
実行使用メモリ 100,296 KB
最終ジャッジ日時 2024-09-17 14:19:51
合計ジャッジ時間 2,660 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
*a, = sorted(set(map(int,input().split())))
print(min(i-j for i,j in zip(a[1:],a)) if len(a)>1 else 0)
0