結果

問題 No.135 とりあえず1次元の問題
ユーザー Konton7
提出日時 2020-03-08 14:21:37
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 175 bytes
コンパイル時間 272 ms
コンパイル使用メモリ 12,800 KB
実行使用メモリ 20,840 KB
最終ジャッジ日時 2024-11-07 03:04:32
合計ジャッジ時間 2,611 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 1
other AC * 11 WA * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
num = [ int(v) for v in input().split() ]
num.sort()
if n > 1:
    num2 = [ num[i+1] - num[i] for i in range(n - 1) ]
    print(min(num2))
else:
    print(0)
0