結果

問題 No.135 とりあえず1次元の問題
ユーザー pypypymipypypymi
提出日時 2022-02-07 10:12:38
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 122 ms / 5,000 ms
コード長 163 bytes
コンパイル時間 844 ms
コンパイル使用メモリ 86,808 KB
実行使用メモリ 101,896 KB
最終ジャッジ日時 2023-09-02 18:02:31
合計ジャッジ時間 3,577 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 120 ms
101,896 KB
testcase_01 AC 72 ms
71,160 KB
testcase_02 AC 76 ms
71,300 KB
testcase_03 AC 70 ms
71,368 KB
testcase_04 AC 72 ms
71,192 KB
testcase_05 AC 73 ms
71,156 KB
testcase_06 AC 74 ms
71,148 KB
testcase_07 AC 74 ms
71,376 KB
testcase_08 AC 73 ms
71,040 KB
testcase_09 AC 72 ms
71,368 KB
testcase_10 AC 72 ms
71,300 KB
testcase_11 AC 77 ms
71,204 KB
testcase_12 AC 75 ms
71,028 KB
testcase_13 AC 77 ms
71,192 KB
testcase_14 AC 77 ms
71,156 KB
testcase_15 AC 73 ms
71,148 KB
testcase_16 AC 73 ms
71,020 KB
testcase_17 AC 75 ms
71,204 KB
testcase_18 AC 74 ms
71,372 KB
testcase_19 AC 75 ms
71,364 KB
testcase_20 AC 73 ms
70,972 KB
testcase_21 AC 91 ms
83,928 KB
testcase_22 AC 122 ms
101,608 KB
evil01.txt AC 113 ms
101,916 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
xn = list(sorted(set(map(int,input().split()))))
if len(xn)==1:
    print(0)
else:
    print(min([abs(xn[i]-xn[i+1]) for i in range(len(xn)-1)]))
0