結果

問題 No.716 距離
ユーザー taktak
提出日時 2018-07-27 22:34:06
言語 F#
(F# 4.0)
結果
AC  
実行時間 101 ms / 2,000 ms
コード長 269 bytes
コンパイル時間 5,111 ms
コンパイル使用メモリ 155,732 KB
実行使用メモリ 27,012 KB
最終ジャッジ日時 2023-09-18 11:19:32
合計ジャッジ時間 9,022 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 94 ms
25,332 KB
testcase_01 AC 93 ms
25,236 KB
testcase_02 AC 93 ms
23,136 KB
testcase_03 AC 93 ms
25,320 KB
testcase_04 AC 93 ms
25,228 KB
testcase_05 AC 93 ms
23,272 KB
testcase_06 AC 94 ms
23,188 KB
testcase_07 AC 85 ms
24,940 KB
testcase_08 AC 85 ms
27,012 KB
testcase_09 AC 85 ms
22,980 KB
testcase_10 AC 93 ms
21,112 KB
testcase_11 AC 93 ms
25,264 KB
testcase_12 AC 93 ms
23,088 KB
testcase_13 AC 93 ms
23,056 KB
testcase_14 AC 86 ms
22,848 KB
testcase_15 AC 94 ms
23,204 KB
testcase_16 AC 101 ms
23,060 KB
testcase_17 AC 95 ms
23,084 KB
testcase_18 AC 85 ms
24,896 KB
testcase_19 AC 93 ms
23,064 KB
testcase_20 AC 85 ms
22,804 KB
testcase_21 AC 92 ms
23,060 KB
testcase_22 AC 93 ms
25,112 KB
testcase_23 AC 86 ms
22,840 KB
testcase_24 AC 95 ms
23,084 KB
testcase_25 AC 93 ms
23,232 KB
testcase_26 AC 93 ms
23,048 KB
testcase_27 AC 93 ms
23,060 KB
testcase_28 AC 86 ms
22,820 KB
testcase_29 AC 92 ms
23,136 KB
testcase_30 AC 93 ms
23,116 KB
testcase_31 AC 93 ms
25,104 KB
testcase_32 AC 92 ms
25,208 KB
testcase_33 AC 91 ms
25,184 KB
testcase_34 AC 92 ms
25,096 KB
testcase_35 AC 85 ms
24,936 KB
testcase_36 AC 92 ms
25,112 KB
testcase_37 AC 84 ms
22,796 KB
testcase_38 AC 92 ms
23,132 KB
testcase_39 AC 91 ms
23,140 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) F# Compiler version 11.0.0.0 for F# 5.0
Copyright (c) Microsoft Corporation. All Rights Reserved.

ソースコード

diff #

let R () = stdin.ReadLine()
let N = R()
let a = R().Split() |> Array.map int

let Min = 
    let pair = a |> Array.pairwise
    pair |> Array.map(fun (l,r) -> r - l) |> Array.min
let Max =
    (a |> Array.max) - (a |> Array.min)

Min |> printfn "%i"
Max |> printfn "%i"
0