結果

問題 No.716 距離
ユーザー akitsugu777akitsugu777
提出日時 2018-10-09 13:35:59
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 370 ms / 2,000 ms
コード長 251 bytes
コンパイル時間 122 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 58,752 KB
最終ジャッジ日時 2024-04-20 19:05:57
合計ジャッジ時間 8,101 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 363 ms
58,624 KB
testcase_01 AC 370 ms
58,624 KB
testcase_02 AC 352 ms
58,752 KB
testcase_03 AC 358 ms
58,624 KB
testcase_04 AC 349 ms
58,496 KB
testcase_05 AC 346 ms
58,624 KB
testcase_06 AC 344 ms
58,752 KB
testcase_07 AC 27 ms
10,624 KB
testcase_08 AC 26 ms
10,752 KB
testcase_09 AC 26 ms
10,624 KB
testcase_10 AC 256 ms
42,624 KB
testcase_11 AC 89 ms
19,712 KB
testcase_12 AC 323 ms
53,504 KB
testcase_13 AC 227 ms
39,296 KB
testcase_14 AC 27 ms
10,752 KB
testcase_15 AC 279 ms
49,280 KB
testcase_16 AC 138 ms
25,984 KB
testcase_17 AC 298 ms
52,352 KB
testcase_18 AC 33 ms
11,136 KB
testcase_19 AC 100 ms
21,632 KB
testcase_20 AC 26 ms
10,496 KB
testcase_21 AC 31 ms
11,392 KB
testcase_22 AC 57 ms
15,232 KB
testcase_23 AC 31 ms
11,136 KB
testcase_24 AC 238 ms
42,496 KB
testcase_25 AC 91 ms
19,712 KB
testcase_26 AC 152 ms
29,312 KB
testcase_27 AC 190 ms
34,816 KB
testcase_28 AC 31 ms
11,136 KB
testcase_29 AC 162 ms
30,336 KB
testcase_30 AC 164 ms
29,568 KB
testcase_31 AC 227 ms
40,192 KB
testcase_32 AC 184 ms
34,176 KB
testcase_33 AC 179 ms
31,616 KB
testcase_34 AC 132 ms
25,344 KB
testcase_35 AC 26 ms
10,624 KB
testcase_36 AC 45 ms
13,568 KB
testcase_37 AC 27 ms
10,752 KB
testcase_38 AC 75 ms
17,664 KB
testcase_39 AC 169 ms
30,848 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
a = [int(_) for _ in input().split()]

l3 = []
for i in a:
    l = a[:]
    b = l.pop(l.index(i))
    l2 = []
    for j in l:
        l2.append(abs(b-j))
    l3.append(l2)

l4 = [j for i in l3 for j in i]
print(min(l4))
print(max(l4))
0