結果

問題 No.135 とりあえず1次元の問題
ユーザー roiti46roiti46
提出日時 2015-01-25 23:26:01
言語 Python2
(2.7.18)
結果
RE  
実行時間 -
コード長 153 bytes
コンパイル時間 399 ms
コンパイル使用メモリ 6,612 KB
実行使用メモリ 15,992 KB
最終ジャッジ日時 2023-08-31 01:23:12
合計ジャッジ時間 2,401 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 140 ms
15,988 KB
testcase_01 AC 11 ms
6,012 KB
testcase_02 RE -
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 RE -
testcase_09 RE -
testcase_10 RE -
testcase_11 RE -
testcase_12 AC 12 ms
6,072 KB
testcase_13 AC 11 ms
5,896 KB
testcase_14 AC 12 ms
5,972 KB
testcase_15 AC 11 ms
6,020 KB
testcase_16 RE -
testcase_17 AC 11 ms
6,024 KB
testcase_18 AC 11 ms
5,952 KB
testcase_19 AC 12 ms
5,940 KB
testcase_20 AC 12 ms
5,952 KB
testcase_21 RE -
testcase_22 RE -
evil01.txt AC 114 ms
15,944 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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