結果

問題 No.586 ダブルブッキング
ユーザー taktak
提出日時 2018-04-13 01:07:48
言語 F#
(F# 4.0)
結果
AC  
実行時間 87 ms / 2,000 ms
コード長 271 bytes
コンパイル時間 3,175 ms
コンパイル使用メモリ 155,056 KB
実行使用メモリ 26,780 KB
最終ジャッジ日時 2023-09-09 04:29:08
合計ジャッジ時間 4,950 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 86 ms
24,732 KB
testcase_01 AC 86 ms
24,776 KB
testcase_02 AC 86 ms
26,780 KB
testcase_03 AC 87 ms
24,808 KB
testcase_04 AC 87 ms
26,776 KB
testcase_05 AC 87 ms
24,576 KB
testcase_06 AC 86 ms
24,716 KB
testcase_07 AC 87 ms
24,736 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) F# Compiler version 11.0.0.0 for F# 5.0
Copyright (c) Microsoft Corporation. All Rights Reserved.

ソースコード

diff #

let read() = stdin.ReadLine() |> int

let P1 = read()
let P2 = read()
let N  = read()
let R  = Array.init N (fun _ -> read())

let lossPerCase = P1+P2
let case = (R |> Array.length) - (R |> Array.distinct |> Array.length)
let loss = lossPerCase*case

loss |> printfn "%i"
0