結果

問題 No.143 豆
ユーザー taktak
提出日時 2018-03-26 22:18:16
言語 F#
(F# 4.0)
結果
AC  
実行時間 87 ms / 1,000 ms
コード長 256 bytes
コンパイル時間 5,483 ms
コンパイル使用メモリ 160,092 KB
実行使用メモリ 24,900 KB
最終ジャッジ日時 2023-09-30 17:14:48
合計ジャッジ時間 6,748 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 85 ms
24,876 KB
testcase_01 AC 87 ms
24,872 KB
testcase_02 AC 85 ms
24,900 KB
testcase_03 AC 85 ms
22,900 KB
testcase_04 AC 84 ms
22,976 KB
testcase_05 AC 86 ms
22,768 KB
testcase_06 AC 85 ms
24,812 KB
testcase_07 AC 85 ms
22,844 KB
testcase_08 AC 85 ms
22,844 KB
testcase_09 AC 86 ms
22,840 KB
testcase_10 AC 86 ms
24,808 KB
testcase_11 AC 86 ms
22,836 KB
testcase_12 AC 85 ms
24,812 KB
testcase_13 AC 85 ms
22,912 KB
testcase_14 AC 86 ms
20,876 KB
testcase_15 AC 86 ms
22,972 KB
testcase_16 AC 85 ms
22,840 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 read() = Console.ReadLine().Split() |> Array.map (int)
             
let K,N,F =
  let t = read()
  t.[0],t.[1],t.[2]             
let A = read()

let num = K * N - (A |> Array.sum)

if num >= 0 then num
else             -1
|> printfn "%i"
0