結果

問題 No.476 正しくない平均
ユーザー Michae'Gon
提出日時 2017-02-21 00:25:52
言語 F#
(F# 4.0)
結果
AC  
実行時間 76 ms / 2,000 ms
コード長 259 bytes
コンパイル時間 20,037 ms
コンパイル使用メモリ 183,780 KB
実行使用メモリ 27,776 KB
最終ジャッジ日時 2024-12-30 11:46:57
合計ジャッジ時間 11,292 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 26
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.fsproj を復元しました (445 ms)。
MSBuild のバージョン 17.9.6+a4ecab324 (.NET)
  main -> /home/judge/data/code/bin/Release/net8.0/main.dll
  main -> /home/judge/data/code/bin/Release/net8.0/publish/

ソースコード

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