結果

問題 No.227 簡単ポーカー
ユーザー cielciel
提出日時 2015-06-19 23:17:00
言語 Ruby
(3.3.0)
結果
AC  
実行時間 87 ms / 5,000 ms
コード長 179 bytes
コンパイル時間 78 ms
コンパイル使用メモリ 11,520 KB
実行使用メモリ 15,332 KB
最終ジャッジ日時 2023-08-27 00:00:18
合計ジャッジ時間 2,136 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 87 ms
15,264 KB
testcase_01 AC 79 ms
15,104 KB
testcase_02 AC 79 ms
15,008 KB
testcase_03 AC 81 ms
15,300 KB
testcase_04 AC 78 ms
15,332 KB
testcase_05 AC 84 ms
15,052 KB
testcase_06 AC 80 ms
15,320 KB
testcase_07 AC 80 ms
15,128 KB
testcase_08 AC 79 ms
15,288 KB
testcase_09 AC 77 ms
15,140 KB
testcase_10 AC 79 ms
15,108 KB
testcase_11 AC 80 ms
15,200 KB
testcase_12 AC 79 ms
15,124 KB
testcase_13 AC 80 ms
15,048 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

#!/usr/bin/ruby
a=gets.split.map(&:to_i).group_by{|e|e}.map{|k,v|v.size}.sort*''
puts a=='23'?'FULL HOUSE':a=='113'?'THREE CARD':a=='122'?'TWO PAIR':a=='1112'?'ONE PAIR':'NO HAND'
0