結果

問題 No.476 正しくない平均
ユーザー Michae'GonMichae'Gon
提出日時 2017-02-21 00:25:52
言語 F#
(F# 4.0)
結果
AC  
実行時間 60 ms / 2,000 ms
コード長 259 bytes
コンパイル時間 3,527 ms
コンパイル使用メモリ 162,216 KB
実行使用メモリ 23,948 KB
最終ジャッジ日時 2023-08-28 22:01:54
合計ジャッジ時間 6,561 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 59 ms
19,640 KB
testcase_01 AC 59 ms
21,720 KB
testcase_02 AC 59 ms
23,668 KB
testcase_03 AC 59 ms
21,824 KB
testcase_04 AC 60 ms
21,876 KB
testcase_05 AC 59 ms
21,896 KB
testcase_06 AC 59 ms
23,848 KB
testcase_07 AC 58 ms
19,676 KB
testcase_08 AC 58 ms
21,772 KB
testcase_09 AC 58 ms
23,864 KB
testcase_10 AC 58 ms
21,736 KB
testcase_11 AC 60 ms
21,752 KB
testcase_12 AC 60 ms
21,860 KB
testcase_13 AC 59 ms
23,948 KB
testcase_14 AC 59 ms
23,756 KB
testcase_15 AC 60 ms
21,704 KB
testcase_16 AC 59 ms
21,740 KB
testcase_17 AC 60 ms
21,888 KB
testcase_18 AC 60 ms
21,792 KB
testcase_19 AC 58 ms
21,828 KB
testcase_20 AC 59 ms
21,892 KB
testcase_21 AC 58 ms
21,696 KB
testcase_22 AC 59 ms
19,700 KB
testcase_23 AC 60 ms
21,792 KB
testcase_24 AC 59 ms
21,664 KB
testcase_25 AC 59 ms
21,928 KB
testcase_26 AC 60 ms
21,724 KB
testcase_27 AC 60 ms
23,784 KB
testcase_28 AC 59 ms
23,876 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) F# Compiler version 11.0.0.0 for F# 5.0
Copyright (c) Microsoft Corporation. All Rights Reserved.

ソースコード

diff #

module Main
open System

let na = Console.ReadLine().Split(' ')
        |> Array.map float

let xs = Console.ReadLine().Split(' ')
        |> Array.map float

Console.WriteLine(
    if Array.sum xs / na.[0] = na.[1] then
        "YES"
    else
        "NO"
)
0