結果

問題 No.476 正しくない平均
ユーザー pekempeypekempey
提出日時 2017-01-27 22:21:36
言語 F#
(F# 4.0)
結果
AC  
実行時間 52 ms / 2,000 ms
コード長 218 bytes
コンパイル時間 5,539 ms
コンパイル使用メモリ 159,224 KB
実行使用メモリ 24,256 KB
最終ジャッジ日時 2023-08-25 22:23:02
合計ジャッジ時間 6,518 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 51 ms
24,196 KB
testcase_01 AC 50 ms
24,244 KB
testcase_02 AC 51 ms
22,168 KB
testcase_03 AC 52 ms
24,192 KB
testcase_04 AC 50 ms
22,192 KB
testcase_05 AC 49 ms
22,224 KB
testcase_06 AC 49 ms
22,268 KB
testcase_07 AC 51 ms
22,164 KB
testcase_08 AC 49 ms
22,108 KB
testcase_09 AC 50 ms
24,256 KB
testcase_10 AC 50 ms
24,076 KB
testcase_11 AC 50 ms
22,200 KB
testcase_12 AC 51 ms
24,192 KB
testcase_13 AC 51 ms
24,208 KB
testcase_14 AC 50 ms
24,232 KB
testcase_15 AC 49 ms
22,156 KB
testcase_16 AC 49 ms
24,112 KB
testcase_17 AC 50 ms
22,072 KB
testcase_18 AC 49 ms
20,040 KB
testcase_19 AC 49 ms
22,088 KB
testcase_20 AC 49 ms
20,040 KB
testcase_21 AC 52 ms
24,076 KB
testcase_22 AC 50 ms
22,128 KB
testcase_23 AC 50 ms
22,160 KB
testcase_24 AC 50 ms
24,188 KB
testcase_25 AC 49 ms
24,184 KB
testcase_26 AC 50 ms
24,184 KB
testcase_27 AC 51 ms
22,116 KB
testcase_28 AC 50 ms
22,096 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) F# Compiler version 11.0.0.0 for F# 5.0
Copyright (c) Microsoft Corporation. All Rights Reserved.

ソースコード

diff #

open System

let n, a = Console.ReadLine().Split() |> Array.map int64 |> fun a -> a.[0], a.[1]
let x = Console.ReadLine().Split() |> Array.map int64 |> Array.sum

Console.WriteLine(if n * a = x then "YES" else "NO")


0