結果

問題 No.716 距離
ユーザー akitsugu777akitsugu777
提出日時 2019-06-05 09:18:30
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 316 ms / 2,000 ms
コード長 181 bytes
コンパイル時間 97 ms
コンパイル使用メモリ 11,796 KB
実行使用メモリ 49,060 KB
最終ジャッジ日時 2023-10-19 22:19:36
合計ジャッジ時間 7,744 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 311 ms
49,056 KB
testcase_01 AC 307 ms
49,052 KB
testcase_02 AC 311 ms
49,060 KB
testcase_03 AC 313 ms
49,056 KB
testcase_04 AC 311 ms
49,056 KB
testcase_05 AC 314 ms
49,052 KB
testcase_06 AC 316 ms
49,060 KB
testcase_07 AC 29 ms
10,068 KB
testcase_08 AC 29 ms
10,068 KB
testcase_09 AC 29 ms
10,068 KB
testcase_10 AC 218 ms
36,604 KB
testcase_11 AC 82 ms
17,252 KB
testcase_12 AC 282 ms
45,480 KB
testcase_13 AC 200 ms
33,488 KB
testcase_14 AC 30 ms
10,068 KB
testcase_15 AC 261 ms
41,536 KB
testcase_16 AC 122 ms
22,820 KB
testcase_17 AC 274 ms
44,424 KB
testcase_18 AC 34 ms
10,568 KB
testcase_19 AC 93 ms
18,932 KB
testcase_20 AC 30 ms
10,084 KB
testcase_21 AC 35 ms
10,716 KB
testcase_22 AC 57 ms
13,732 KB
testcase_23 AC 34 ms
10,532 KB
testcase_24 AC 221 ms
36,480 KB
testcase_25 AC 85 ms
17,512 KB
testcase_26 AC 141 ms
25,308 KB
testcase_27 AC 171 ms
30,120 KB
testcase_28 AC 33 ms
10,508 KB
testcase_29 AC 144 ms
26,392 KB
testcase_30 AC 140 ms
25,308 KB
testcase_31 AC 198 ms
33,920 KB
testcase_32 AC 165 ms
29,200 KB
testcase_33 AC 157 ms
27,524 KB
testcase_34 AC 117 ms
22,032 KB
testcase_35 AC 30 ms
10,092 KB
testcase_36 AC 46 ms
12,180 KB
testcase_37 AC 30 ms
10,148 KB
testcase_38 AC 71 ms
15,764 KB
testcase_39 AC 152 ms
26,904 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
a = list(map(int, input().split()))

d = []
for i in range(n):
    b = a[:]
    c = b.pop(i)
    for j in b:
        d.append(abs(c-j))

print(min(d))
print(max(d))
0