結果

問題 No.227 簡単ポーカー
ユーザー mmmpppmmmppp
提出日時 2017-03-09 12:11:30
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 122 bytes
コンパイル時間 181 ms
コンパイル使用メモリ 11,468 KB
実行使用メモリ 15,336 KB
最終ジャッジ日時 2023-09-06 05:11:38
合計ジャッジ時間 2,112 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 81 ms
15,260 KB
testcase_01 AC 81 ms
15,252 KB
testcase_02 AC 82 ms
15,160 KB
testcase_03 AC 81 ms
15,104 KB
testcase_04 WA -
testcase_05 AC 81 ms
15,248 KB
testcase_06 AC 81 ms
15,220 KB
testcase_07 AC 81 ms
15,112 KB
testcase_08 AC 80 ms
15,048 KB
testcase_09 AC 82 ms
15,216 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 82 ms
15,100 KB
testcase_13 AC 83 ms
15,032 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:2: warning: ambiguity between regexp and two divisions: wrap regexp in parentheses or add a space after `/' operator
Main.rb:2: warning: regex literal in condition
Main.rb:2: warning: regex literal in condition
Main.rb:2: warning: regex literal in condition
Syntax OK

ソースコード

diff #

$_=([]|a=gets.split).map{|e|a.count e}*''
puts /3/?/2/?'FULL HOUSE':'THREE CARD':/2/?($'[0]?'TWO':'ONE')+' PAIR':'NO HAND'
0