結果

問題 No.135 とりあえず1次元の問題
ユーザー nisizawa
提出日時 2017-12-01 14:27:43
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
MLE  
実行時間 -
コード長 216 bytes
コンパイル時間 181 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 1,217,924 KB
最終ジャッジ日時 2024-11-27 21:28:13
合計ジャッジ時間 32,529 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 MLE * 1
other AC * 17 RE * 1 TLE * 2 MLE * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
x = list(map(int, input().split()))

dist = []

for i in reversed(range(n)):
    for j in range(i):
        d = abs(x[i] - x[j])
        if d > 0:
            dist.append(d)
        
print(min(dist))
0