結果

問題 No.21 平均の差
ユーザー regeregeregerege
提出日時 2015-11-27 20:25:32
言語 F#
(F# 4.0)
結果
WA  
実行時間 -
コード長 244 bytes
コンパイル時間 5,369 ms
コンパイル使用メモリ 155,404 KB
実行使用メモリ 25,240 KB
最終ジャッジ日時 2023-10-11 23:16:19
合計ジャッジ時間 7,176 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 89 ms
21,148 KB
testcase_04 AC 90 ms
23,096 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) F# Compiler version 11.0.0.0 for F# 5.0
Copyright (c) Microsoft Corporation. All Rights Reserved.

ソースコード

diff #

let ``No.21 平均の差`` () =
    let N = int <| stdin.ReadLine()
    let K = int <| stdin.ReadLine()
    let s = [ for i in 1..N -> int <| stdin.ReadLine() ] |> List.sort
    printfn "%d" <| s.Head - s.[s.Length-1]
``No.21 平均の差`` ()
0