結果

問題 No.227 簡単ポーカー
コンテスト
ユーザー mmmppp
提出日時 2017-02-26 19:03:24
言語 Ruby
(4.0.2)
コンパイル:
ruby -w -c _filename_
実行:
ruby _filename_
結果
AC  
実行時間 52 ms / 5,000 ms
+ 732µs
コード長 123 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 9 ms
コンパイル使用メモリ 8,960 KB
実行使用メモリ 14,592 KB
最終ジャッジ日時 2026-07-25 14:39:30
合計ジャッジ時間 1,858 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 14
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:2: warning: ambiguous `/`; 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
Main.rb:2: warning: regex literal in condition
Syntax OK

ソースコード

diff #
raw source code

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