結果

問題 No.135 とりあえず1次元の問題
ユーザー pypypymipypypymi
提出日時 2022-02-07 10:07:15
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 164 bytes
コンパイル時間 867 ms
コンパイル使用メモリ 86,664 KB
実行使用メモリ 101,836 KB
最終ジャッジ日時 2023-09-02 17:57:11
合計ジャッジ時間 4,690 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 124 ms
101,836 KB
testcase_01 AC 74 ms
71,216 KB
testcase_02 AC 73 ms
71,000 KB
testcase_03 RE -
testcase_04 AC 71 ms
70,964 KB
testcase_05 AC 68 ms
70,972 KB
testcase_06 AC 71 ms
71,120 KB
testcase_07 AC 71 ms
71,104 KB
testcase_08 AC 73 ms
71,132 KB
testcase_09 AC 72 ms
71,104 KB
testcase_10 AC 72 ms
71,004 KB
testcase_11 AC 72 ms
70,812 KB
testcase_12 AC 72 ms
71,096 KB
testcase_13 AC 72 ms
70,920 KB
testcase_14 AC 73 ms
70,956 KB
testcase_15 AC 74 ms
70,952 KB
testcase_16 AC 74 ms
71,000 KB
testcase_17 AC 72 ms
71,256 KB
testcase_18 AC 70 ms
71,028 KB
testcase_19 AC 72 ms
71,032 KB
testcase_20 AC 71 ms
70,956 KB
testcase_21 AC 88 ms
83,696 KB
testcase_22 AC 117 ms
101,792 KB
evil01.txt AC 110 ms
102,056 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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