結果

問題 No.135 とりあえず1次元の問題
ユーザー ABKZABKZ
提出日時 2021-06-29 22:31:06
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 127 ms / 5,000 ms
コード長 168 bytes
コンパイル時間 297 ms
コンパイル使用メモリ 86,772 KB
実行使用メモリ 105,452 KB
最終ジャッジ日時 2023-09-08 07:50:04
合計ジャッジ時間 3,820 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 123 ms
105,452 KB
testcase_01 AC 71 ms
71,216 KB
testcase_02 AC 70 ms
71,220 KB
testcase_03 AC 71 ms
71,004 KB
testcase_04 AC 71 ms
71,220 KB
testcase_05 AC 72 ms
71,148 KB
testcase_06 AC 71 ms
70,988 KB
testcase_07 AC 71 ms
71,348 KB
testcase_08 AC 72 ms
70,848 KB
testcase_09 AC 69 ms
71,080 KB
testcase_10 AC 70 ms
71,028 KB
testcase_11 AC 71 ms
71,068 KB
testcase_12 AC 71 ms
71,036 KB
testcase_13 AC 69 ms
71,028 KB
testcase_14 AC 70 ms
71,068 KB
testcase_15 AC 71 ms
71,320 KB
testcase_16 AC 72 ms
71,360 KB
testcase_17 AC 72 ms
71,356 KB
testcase_18 AC 71 ms
71,304 KB
testcase_19 AC 72 ms
71,356 KB
testcase_20 AC 71 ms
71,072 KB
testcase_21 AC 102 ms
98,812 KB
testcase_22 AC 127 ms
105,268 KB
evil01.txt AC 116 ms
105,472 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
pos = sorted(list(map(int, input().split())))

dis = [b - a for a, b in list(zip(pos[:-1], pos[1:])) if a != b]

print(min(dis) if len(dis) > 0 else 0)
0