結果

問題 No.785 色食い虫
ユーザー taktak
提出日時 2019-02-10 00:29:52
言語 F#
(.NET 7)
結果
AC  
実行時間 81 ms / 2,000 ms
コード長 339 bytes
コンパイル時間 4,711 ms
コンパイル使用メモリ 158,752 KB
実行使用メモリ 24,860 KB
最終ジャッジ日時 2023-09-14 11:53:41
合計ジャッジ時間 8,604 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 80 ms
22,788 KB
testcase_01 AC 79 ms
22,776 KB
testcase_02 AC 78 ms
24,812 KB
testcase_03 AC 78 ms
24,800 KB
testcase_04 AC 78 ms
22,748 KB
testcase_05 AC 78 ms
24,804 KB
testcase_06 AC 79 ms
22,768 KB
testcase_07 AC 80 ms
22,868 KB
testcase_08 AC 79 ms
24,712 KB
testcase_09 AC 80 ms
22,764 KB
testcase_10 AC 81 ms
22,776 KB
testcase_11 AC 79 ms
24,844 KB
testcase_12 AC 79 ms
20,764 KB
testcase_13 AC 79 ms
22,764 KB
testcase_14 AC 79 ms
24,760 KB
testcase_15 AC 79 ms
24,860 KB
testcase_16 AC 79 ms
22,780 KB
testcase_17 AC 80 ms
22,816 KB
testcase_18 AC 78 ms
22,760 KB
testcase_19 AC 80 ms
22,872 KB
testcase_20 AC 81 ms
22,740 KB
testcase_21 AC 79 ms
22,752 KB
testcase_22 AC 79 ms
22,868 KB
testcase_23 AC 78 ms
20,628 KB
testcase_24 AC 79 ms
22,672 KB
testcase_25 AC 79 ms
22,764 KB
testcase_26 AC 81 ms
22,732 KB
testcase_27 AC 79 ms
22,868 KB
testcase_28 AC 80 ms
22,776 KB
testcase_29 AC 80 ms
24,848 KB
testcase_30 AC 78 ms
24,776 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) F# Compiler version 11.0.0.0 for F# 5.0
Copyright (c) Microsoft Corporation. All Rights Reserved.

ソースコード

diff #

let parseInput = function
  | "NONE" -> [||]
  | x -> x.Split(',') |> Array.map (fun x -> x.[0])

let R() = stdin.ReadLine() |> parseInput

let solve r g b =
  let f = Array.length >> (-) 16
  let rN = r |> f
  let gN = g |> f
  let bN = b |> f
  rN * rN * gN * gN * bN * bN

let r = R()
let g = R()
let b = R()
solve r g b
|> printfn "%i"
0