結果

問題 No.135 とりあえず1次元の問題
ユーザー MarioMario
提出日時 2018-04-30 12:10:32
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 120 ms / 5,000 ms
コード長 183 bytes
コンパイル時間 318 ms
コンパイル使用メモリ 87,064 KB
実行使用メモリ 101,040 KB
最終ジャッジ日時 2023-09-10 08:23:18
合計ジャッジ時間 3,457 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 117 ms
101,040 KB
testcase_01 AC 71 ms
70,968 KB
testcase_02 AC 69 ms
71,140 KB
testcase_03 AC 70 ms
71,020 KB
testcase_04 AC 67 ms
71,016 KB
testcase_05 AC 70 ms
71,044 KB
testcase_06 AC 70 ms
71,096 KB
testcase_07 AC 67 ms
71,164 KB
testcase_08 AC 69 ms
71,040 KB
testcase_09 AC 68 ms
70,820 KB
testcase_10 AC 69 ms
70,956 KB
testcase_11 AC 71 ms
71,016 KB
testcase_12 AC 70 ms
71,156 KB
testcase_13 AC 69 ms
70,888 KB
testcase_14 AC 68 ms
71,020 KB
testcase_15 AC 69 ms
71,128 KB
testcase_16 AC 71 ms
71,020 KB
testcase_17 AC 69 ms
71,132 KB
testcase_18 AC 74 ms
71,064 KB
testcase_19 AC 69 ms
71,048 KB
testcase_20 AC 69 ms
70,680 KB
testcase_21 AC 84 ms
83,796 KB
testcase_22 AC 120 ms
100,796 KB
evil01.txt AC 107 ms
101,204 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

_ = int(input())
points = sorted(set(map(int, input().split())))

dist = [points[n + 1] - points[n] for n in range(len(points) - 1)]

if dist:
    print(min(dist))
else:
    print(0)
0