結果

問題 No.716 距離
ユーザー MA_yo_TAMA_yo_TA
提出日時 2018-08-02 07:43:03
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 224 bytes
コンパイル時間 84 ms
コンパイル使用メモリ 11,744 KB
実行使用メモリ 10,128 KB
最終ジャッジ日時 2023-10-19 20:58:46
合計ジャッジ時間 3,925 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 117 ms
10,128 KB
testcase_01 AC 119 ms
10,128 KB
testcase_02 AC 118 ms
10,128 KB
testcase_03 AC 116 ms
10,128 KB
testcase_04 AC 115 ms
10,128 KB
testcase_05 AC 115 ms
10,128 KB
testcase_06 AC 113 ms
10,128 KB
testcase_07 WA -
testcase_08 AC 29 ms
10,016 KB
testcase_09 WA -
testcase_10 AC 90 ms
10,108 KB
testcase_11 WA -
testcase_12 AC 106 ms
10,128 KB
testcase_13 AC 81 ms
10,100 KB
testcase_14 WA -
testcase_15 AC 98 ms
10,116 KB
testcase_16 WA -
testcase_17 AC 106 ms
10,124 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 AC 87 ms
10,108 KB
testcase_25 AC 45 ms
10,048 KB
testcase_26 WA -
testcase_27 AC 72 ms
10,096 KB
testcase_28 WA -
testcase_29 AC 65 ms
10,084 KB
testcase_30 WA -
testcase_31 AC 81 ms
10,104 KB
testcase_32 AC 70 ms
10,096 KB
testcase_33 WA -
testcase_34 AC 56 ms
10,068 KB
testcase_35 WA -
testcase_36 WA -
testcase_37 WA -
testcase_38 WA -
testcase_39 AC 65 ms
10,084 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
a = [int(i) for i in input().split()]
max = a[len(a) - 1] - a[0]
min = 0
for i in range(1, len(a)):
    for j in range(i):
        if min > (a[i] - a[j]):
            min = a[i] - a[j]
print(min)
print(max)
0