結果

問題 No.227 簡単ポーカー
ユーザー regeregeregerege
提出日時 2017-05-03 15:56:44
言語 F#
(F# 4.0)
結果
AC  
実行時間 96 ms / 5,000 ms
コード長 256 bytes
コンパイル時間 3,166 ms
コンパイル使用メモリ 156,332 KB
実行使用メモリ 17,216 KB
最終ジャッジ日時 2023-10-12 07:59:08
合計ジャッジ時間 5,533 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 94 ms
17,124 KB
testcase_01 AC 94 ms
17,016 KB
testcase_02 AC 95 ms
16,956 KB
testcase_03 AC 95 ms
17,216 KB
testcase_04 AC 96 ms
17,152 KB
testcase_05 AC 95 ms
17,156 KB
testcase_06 AC 90 ms
17,016 KB
testcase_07 AC 95 ms
17,116 KB
testcase_08 AC 91 ms
17,008 KB
testcase_09 AC 95 ms
17,112 KB
testcase_10 AC 95 ms
17,116 KB
testcase_11 AC 96 ms
17,152 KB
testcase_12 AC 95 ms
17,072 KB
testcase_13 AC 96 ms
17,124 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) F# Compiler version 11.0.0.0 for F# 5.0
Copyright (c) Microsoft Corporation. All Rights Reserved.

ソースコード

diff #

stdin.ReadLine().Split(' ')
|> Array.toList
|> List.groupBy id
|> List.map(fun (a,b) -> b.Length)
|> List.sort
|> function
| [2;3] -> "FULL HOUSE"
| [1;1;3] -> "THREE CARD"
| [1;2;2] -> "TWO PAIR"
| [1;1;1;2] -> "ONE PAIR"
| _ -> "NO HAND"
|> printfn "%s"
0