結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 88 ms
23,136 KB
testcase_01 AC 89 ms
23,080 KB
testcase_02 AC 88 ms
23,012 KB
testcase_03 AC 89 ms
21,096 KB
testcase_04 AC 89 ms
23,048 KB
testcase_05 AC 89 ms
22,952 KB
testcase_06 AC 89 ms
22,936 KB
testcase_07 AC 91 ms
25,008 KB
testcase_08 AC 90 ms
21,076 KB
testcase_09 AC 88 ms
20,996 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
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.[N-1] - s.[0]
``No.21 平均の差`` ()
0