結果

問題 No.632 穴埋め門松列
ユーザー taktak
提出日時 2018-07-29 23:31:12
言語 F#
(F# 4.0)
結果
AC  
実行時間 82 ms / 1,000 ms
コード長 204 bytes
コンパイル時間 4,821 ms
コンパイル使用メモリ 151,612 KB
実行使用メモリ 24,664 KB
最終ジャッジ日時 2023-09-26 08:51:44
合計ジャッジ時間 6,072 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 81 ms
22,692 KB
testcase_01 AC 80 ms
22,696 KB
testcase_02 AC 77 ms
22,672 KB
testcase_03 AC 77 ms
22,584 KB
testcase_04 AC 82 ms
24,664 KB
testcase_05 AC 82 ms
22,812 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) F# Compiler version 11.0.0.0 for F# 5.0
Copyright (c) Microsoft Corporation. All Rights Reserved.

ソースコード

diff #

let (|Num|Unknown|) = function | "?" -> Unknown | x -> Num (int x)

let c = stdin.ReadLine().Split()

match c.[1] with
| Unknown    -> "14"
| Num center -> if center = 3 then "1" else "4"
|> printfn "%s"
0