結果

問題 No.135 とりあえず1次元の問題
ユーザー flippergo
提出日時 2024-10-18 11:48:19
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 134 bytes
コンパイル時間 937 ms
コンパイル使用メモリ 82,376 KB
実行使用メモリ 82,604 KB
最終ジャッジ日時 2024-10-18 11:48:23
合計ジャッジ時間 3,185 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 1
other AC * 11 WA * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
X = sorted(list(map(int,input().split())))
ans = 10**6
for i in range(N-1):
    ans = min(ans,X[i+1]-X[i])
print(ans)
0