結果

問題 No.135 とりあえず1次元の問題
ユーザー MinixMinix
提出日時 2021-08-09 14:25:07
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 147 ms / 5,000 ms
コード長 139 bytes
コンパイル時間 107 ms
コンパイル使用メモリ 11,740 KB
実行使用メモリ 21,852 KB
最終ジャッジ日時 2023-10-21 12:10:44
合計ジャッジ時間 2,431 ms
ジャッジサーバーID
(参考情報)
judge10 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 143 ms
21,852 KB
testcase_01 AC 28 ms
10,072 KB
testcase_02 AC 28 ms
10,072 KB
testcase_03 AC 28 ms
10,072 KB
testcase_04 AC 28 ms
10,080 KB
testcase_05 AC 28 ms
10,080 KB
testcase_06 AC 29 ms
10,080 KB
testcase_07 AC 29 ms
10,080 KB
testcase_08 AC 27 ms
10,080 KB
testcase_09 AC 29 ms
10,080 KB
testcase_10 AC 30 ms
10,080 KB
testcase_11 AC 29 ms
10,080 KB
testcase_12 AC 29 ms
10,136 KB
testcase_13 AC 29 ms
10,084 KB
testcase_14 AC 30 ms
10,204 KB
testcase_15 AC 28 ms
10,136 KB
testcase_16 AC 29 ms
10,200 KB
testcase_17 AC 29 ms
10,204 KB
testcase_18 AC 29 ms
10,088 KB
testcase_19 AC 29 ms
10,192 KB
testcase_20 AC 30 ms
10,168 KB
testcase_21 AC 61 ms
20,800 KB
testcase_22 AC 147 ms
21,848 KB
evil01.txt AC 129 ms
21,848 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input());c=10**6
x=sorted([i for i in {*[*map(int,input().split())]}])
for i in range(len(x)):
    c=min(c,abs(x[i]-x[i-1]))
print(c)
0