結果

問題 No.135 とりあえず1次元の問題
ユーザー roiti46roiti46
提出日時 2015-01-25 23:27:02
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 158 bytes
コンパイル時間 61 ms
コンパイル使用メモリ 6,632 KB
実行使用メモリ 16,032 KB
最終ジャッジ日時 2023-08-31 01:23:40
合計ジャッジ時間 1,893 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 126 ms
15,860 KB
testcase_01 AC 11 ms
6,104 KB
testcase_02 AC 11 ms
5,940 KB
testcase_03 WA -
testcase_04 AC 11 ms
5,980 KB
testcase_05 AC 11 ms
5,944 KB
testcase_06 AC 11 ms
5,960 KB
testcase_07 AC 10 ms
5,992 KB
testcase_08 AC 11 ms
5,940 KB
testcase_09 AC 10 ms
5,864 KB
testcase_10 AC 11 ms
6,080 KB
testcase_11 AC 10 ms
6,104 KB
testcase_12 AC 11 ms
5,872 KB
testcase_13 AC 11 ms
5,980 KB
testcase_14 AC 11 ms
6,044 KB
testcase_15 AC 11 ms
5,968 KB
testcase_16 AC 12 ms
5,948 KB
testcase_17 AC 12 ms
6,032 KB
testcase_18 AC 11 ms
5,956 KB
testcase_19 AC 11 ms
6,012 KB
testcase_20 AC 11 ms
5,968 KB
testcase_21 AC 60 ms
14,616 KB
testcase_22 AC 130 ms
16,032 KB
evil01.txt AC 110 ms
15,872 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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