結果

問題 No.476 正しくない平均
ユーザー はむ吉🐹はむ吉🐹
提出日時 2017-01-29 17:12:27
言語 F#
(F# 4.0)
結果
AC  
実行時間 64 ms / 2,000 ms
コード長 273 bytes
コンパイル時間 3,101 ms
コンパイル使用メモリ 156,892 KB
実行使用メモリ 24,464 KB
最終ジャッジ日時 2023-08-25 22:41:13
合計ジャッジ時間 5,973 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 59 ms
22,464 KB
testcase_01 AC 60 ms
24,356 KB
testcase_02 AC 61 ms
24,412 KB
testcase_03 AC 64 ms
22,412 KB
testcase_04 AC 62 ms
22,416 KB
testcase_05 AC 61 ms
22,380 KB
testcase_06 AC 61 ms
24,408 KB
testcase_07 AC 63 ms
22,428 KB
testcase_08 AC 63 ms
22,368 KB
testcase_09 AC 61 ms
22,568 KB
testcase_10 AC 59 ms
22,340 KB
testcase_11 AC 60 ms
22,420 KB
testcase_12 AC 59 ms
22,376 KB
testcase_13 AC 60 ms
22,476 KB
testcase_14 AC 60 ms
22,348 KB
testcase_15 AC 64 ms
22,508 KB
testcase_16 AC 64 ms
22,388 KB
testcase_17 AC 63 ms
22,504 KB
testcase_18 AC 62 ms
24,464 KB
testcase_19 AC 60 ms
24,360 KB
testcase_20 AC 61 ms
22,344 KB
testcase_21 AC 62 ms
20,464 KB
testcase_22 AC 59 ms
22,380 KB
testcase_23 AC 60 ms
24,356 KB
testcase_24 AC 60 ms
22,368 KB
testcase_25 AC 60 ms
22,444 KB
testcase_26 AC 60 ms
22,392 KB
testcase_27 AC 63 ms
20,332 KB
testcase_28 AC 63 ms
22,380 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) F# Compiler version 11.0.0.0 for F# 5.0
Copyright (c) Microsoft Corporation. All Rights Reserved.

ソースコード

diff #

let validate (a : float) (xs : float list) = a = List.average xs

let () =
    let data = stdin.ReadLine().Split(' ')
    let a = float data.[1]
    let xs = stdin.ReadLine().Split(' ') |> Array.map float |> List.ofArray
    printfn (if validate a xs then "YES" else "NO")
0