結果

問題 No.476 正しくない平均
ユーザー ichibanshiboriichibanshibori
提出日時 2017-01-27 22:26:21
言語 F#
(F# 4.0)
結果
AC  
実行時間 85 ms / 2,000 ms
コード長 316 bytes
コンパイル時間 4,337 ms
コンパイル使用メモリ 153,672 KB
実行使用メモリ 26,800 KB
最終ジャッジ日時 2023-08-25 22:28:52
合計ジャッジ時間 6,740 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 82 ms
22,636 KB
testcase_01 AC 82 ms
22,724 KB
testcase_02 AC 84 ms
24,748 KB
testcase_03 AC 84 ms
22,824 KB
testcase_04 AC 84 ms
22,920 KB
testcase_05 AC 82 ms
24,700 KB
testcase_06 AC 81 ms
24,828 KB
testcase_07 AC 81 ms
22,656 KB
testcase_08 AC 81 ms
24,700 KB
testcase_09 AC 82 ms
22,728 KB
testcase_10 AC 83 ms
22,660 KB
testcase_11 AC 84 ms
24,836 KB
testcase_12 AC 83 ms
22,776 KB
testcase_13 AC 82 ms
24,792 KB
testcase_14 AC 82 ms
22,812 KB
testcase_15 AC 83 ms
22,820 KB
testcase_16 AC 82 ms
22,776 KB
testcase_17 AC 83 ms
22,904 KB
testcase_18 AC 85 ms
22,720 KB
testcase_19 AC 85 ms
22,840 KB
testcase_20 AC 84 ms
22,688 KB
testcase_21 AC 84 ms
22,712 KB
testcase_22 AC 84 ms
22,712 KB
testcase_23 AC 84 ms
24,712 KB
testcase_24 AC 83 ms
22,724 KB
testcase_25 AC 85 ms
22,756 KB
testcase_26 AC 84 ms
26,800 KB
testcase_27 AC 84 ms
22,816 KB
testcase_28 AC 85 ms
22,824 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) F# Compiler version 11.0.0.0 for F# 5.0
Copyright (c) Microsoft Corporation. All Rights Reserved.

ソースコード

diff #

let () =
    let _, a = stdin.ReadLine().Split()
               |> Array.map decimal
               |> fun arr -> arr.[0], arr.[1]
    let avg = stdin.ReadLine().Split()
              |> Array.map decimal
              |> Array.average

    a = avg
    |> function | true -> "YES" | false -> "NO"
    |> printfn "%s"
0