結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 121 ms
101,648 KB
testcase_01 AC 72 ms
71,176 KB
testcase_02 AC 69 ms
70,992 KB
testcase_03 RE -
testcase_04 AC 71 ms
71,068 KB
testcase_05 AC 71 ms
70,964 KB
testcase_06 AC 72 ms
71,196 KB
testcase_07 AC 72 ms
70,716 KB
testcase_08 AC 72 ms
70,756 KB
testcase_09 AC 72 ms
70,832 KB
testcase_10 AC 71 ms
71,060 KB
testcase_11 AC 73 ms
71,188 KB
testcase_12 AC 73 ms
70,968 KB
testcase_13 AC 72 ms
71,108 KB
testcase_14 AC 72 ms
70,832 KB
testcase_15 AC 71 ms
71,164 KB
testcase_16 AC 73 ms
70,984 KB
testcase_17 AC 73 ms
71,012 KB
testcase_18 AC 72 ms
70,984 KB
testcase_19 AC 73 ms
70,968 KB
testcase_20 AC 72 ms
71,176 KB
testcase_21 AC 89 ms
83,808 KB
testcase_22 AC 120 ms
101,400 KB
evil01.txt AC 107 ms
101,936 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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