結果

問題 No.476 正しくない平均
ユーザー Nobita GomuNobita Gomu
提出日時 2017-09-26 00:46:32
言語 F#
(F# 4.0)
結果
AC  
実行時間 86 ms / 2,000 ms
コード長 318 bytes
コンパイル時間 7,866 ms
コンパイル使用メモリ 159,868 KB
実行使用メモリ 24,992 KB
最終ジャッジ日時 2023-08-09 07:05:50
合計ジャッジ時間 7,474 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 83 ms
22,824 KB
testcase_01 AC 84 ms
20,836 KB
testcase_02 AC 83 ms
22,852 KB
testcase_03 AC 83 ms
20,816 KB
testcase_04 AC 83 ms
24,984 KB
testcase_05 AC 83 ms
22,892 KB
testcase_06 AC 84 ms
22,936 KB
testcase_07 AC 83 ms
20,888 KB
testcase_08 AC 84 ms
24,788 KB
testcase_09 AC 83 ms
24,992 KB
testcase_10 AC 81 ms
22,824 KB
testcase_11 AC 84 ms
24,908 KB
testcase_12 AC 83 ms
22,828 KB
testcase_13 AC 82 ms
24,776 KB
testcase_14 AC 85 ms
24,960 KB
testcase_15 AC 83 ms
22,812 KB
testcase_16 AC 84 ms
22,788 KB
testcase_17 AC 84 ms
24,832 KB
testcase_18 AC 84 ms
24,932 KB
testcase_19 AC 85 ms
22,944 KB
testcase_20 AC 83 ms
22,856 KB
testcase_21 AC 84 ms
22,864 KB
testcase_22 AC 85 ms
22,932 KB
testcase_23 AC 86 ms
24,852 KB
testcase_24 AC 83 ms
22,736 KB
testcase_25 AC 82 ms
20,752 KB
testcase_26 AC 85 ms
22,812 KB
testcase_27 AC 84 ms
22,980 KB
testcase_28 AC 84 ms
22,912 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) F# Compiler version 11.0.0.0 for F# 5.0
Copyright (c) Microsoft Corporation. All Rights Reserved.

ソースコード

diff #

let split (s:string) = s.Split ' '

let snd = split >> Array.map float >> fun (a:float[]) -> a.[1]
let average = split >> Seq.map float >> Seq.average

let judge =
    match (stdin.ReadLine () |> snd,
           stdin.ReadLine () |> average) with
    | (a, b) when a = b -> "YES"
    | _ -> "NO"

judge |> printfn "%s"
0