結果
| 問題 |
No.227 簡単ポーカー
|
| コンテスト | |
| ユーザー |
mmmppp
|
| 提出日時 | 2017-02-26 18:52:29 |
| 言語 | Ruby (3.4.1) |
| 結果 |
AC
|
| 実行時間 | 81 ms / 5,000 ms |
| コード長 | 146 bytes |
| コンパイル時間 | 72 ms |
| コンパイル使用メモリ | 7,552 KB |
| 実行使用メモリ | 12,416 KB |
| 最終ジャッジ日時 | 2024-06-11 16:47:37 |
| 合計ジャッジ時間 | 1,706 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 14 |
コンパイルメッセージ
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 Main.rb:2: warning: regex literal in condition Syntax OK
ソースコード
$_=gets.split.map(&:to_i).group_by{|i|i}.map{|i,j|j.size}.sort*''
puts /23/?'FULL HOUSE':/3/?'THREE CARD':/22/?'TWO PAIR':/2/?'ONE PAIR':'NO HAND'
mmmppp