結果

問題 No.716 距離
ユーザー akitsugu777akitsugu777
提出日時 2018-10-11 11:19:31
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 331 ms / 2,000 ms
コード長 184 bytes
コンパイル時間 95 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 49,920 KB
最終ジャッジ日時 2024-04-20 19:40:46
合計ジャッジ時間 7,826 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 326 ms
49,664 KB
testcase_01 AC 328 ms
49,920 KB
testcase_02 AC 327 ms
49,920 KB
testcase_03 AC 331 ms
49,920 KB
testcase_04 AC 328 ms
49,920 KB
testcase_05 AC 323 ms
49,792 KB
testcase_06 AC 319 ms
49,920 KB
testcase_07 AC 30 ms
10,752 KB
testcase_08 AC 29 ms
10,624 KB
testcase_09 AC 30 ms
10,368 KB
testcase_10 AC 240 ms
37,248 KB
testcase_11 AC 87 ms
17,920 KB
testcase_12 AC 291 ms
46,208 KB
testcase_13 AC 203 ms
34,048 KB
testcase_14 AC 30 ms
10,368 KB
testcase_15 AC 276 ms
42,368 KB
testcase_16 AC 128 ms
23,296 KB
testcase_17 AC 284 ms
45,184 KB
testcase_18 AC 34 ms
11,136 KB
testcase_19 AC 98 ms
19,712 KB
testcase_20 AC 30 ms
10,752 KB
testcase_21 AC 35 ms
11,392 KB
testcase_22 AC 59 ms
14,208 KB
testcase_23 AC 33 ms
11,008 KB
testcase_24 AC 230 ms
37,120 KB
testcase_25 AC 88 ms
18,304 KB
testcase_26 AC 147 ms
26,112 KB
testcase_27 AC 184 ms
30,464 KB
testcase_28 AC 32 ms
11,136 KB
testcase_29 AC 154 ms
26,752 KB
testcase_30 AC 146 ms
26,240 KB
testcase_31 AC 211 ms
34,688 KB
testcase_32 AC 173 ms
30,080 KB
testcase_33 AC 161 ms
28,160 KB
testcase_34 AC 121 ms
22,656 KB
testcase_35 AC 30 ms
10,752 KB
testcase_36 AC 46 ms
12,800 KB
testcase_37 AC 31 ms
10,752 KB
testcase_38 AC 73 ms
16,512 KB
testcase_39 AC 153 ms
27,392 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

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

print(min(l))
print(max(l))
0