結果

問題 No.716 距離
ユーザー crizecrize
提出日時 2018-07-27 23:04:46
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 377 ms / 2,000 ms
コード長 200 bytes
コンパイル時間 76 ms
コンパイル使用メモリ 10,500 KB
実行使用メモリ 47,204 KB
最終ジャッジ日時 2023-09-18 13:25:52
合計ジャッジ時間 8,538 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 353 ms
47,036 KB
testcase_01 AC 377 ms
47,116 KB
testcase_02 AC 366 ms
47,136 KB
testcase_03 AC 354 ms
47,172 KB
testcase_04 AC 375 ms
47,036 KB
testcase_05 AC 345 ms
47,204 KB
testcase_06 AC 351 ms
47,056 KB
testcase_07 AC 15 ms
7,848 KB
testcase_08 AC 15 ms
7,808 KB
testcase_09 AC 16 ms
7,828 KB
testcase_10 AC 255 ms
34,560 KB
testcase_11 AC 83 ms
15,252 KB
testcase_12 AC 323 ms
43,596 KB
testcase_13 AC 213 ms
31,508 KB
testcase_14 AC 16 ms
7,756 KB
testcase_15 AC 287 ms
39,624 KB
testcase_16 AC 125 ms
20,716 KB
testcase_17 AC 325 ms
42,456 KB
testcase_18 AC 21 ms
8,580 KB
testcase_19 AC 92 ms
16,952 KB
testcase_20 AC 16 ms
7,784 KB
testcase_21 AC 22 ms
8,680 KB
testcase_22 AC 49 ms
11,824 KB
testcase_23 AC 20 ms
8,524 KB
testcase_24 AC 244 ms
34,392 KB
testcase_25 AC 82 ms
15,668 KB
testcase_26 AC 149 ms
23,320 KB
testcase_27 AC 198 ms
28,124 KB
testcase_28 AC 20 ms
8,520 KB
testcase_29 AC 164 ms
24,400 KB
testcase_30 AC 149 ms
23,412 KB
testcase_31 AC 217 ms
32,040 KB
testcase_32 AC 186 ms
27,232 KB
testcase_33 AC 174 ms
25,580 KB
testcase_34 AC 121 ms
20,044 KB
testcase_35 AC 16 ms
7,828 KB
testcase_36 AC 35 ms
10,316 KB
testcase_37 AC 16 ms
7,808 KB
testcase_38 AC 69 ms
13,900 KB
testcase_39 AC 158 ms
24,748 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
saitan=[]
m=list(map(int,input().split()))
for i in range(n-1):
    for j in range(n):
        if i!=j:
            saitan.append(abs(m[i]-m[j]))
print(min(saitan))
print(max(m)-min(m))
0