結果
| 問題 |
No.267 トランプソート
|
| コンテスト | |
| ユーザー |
riokuma0810
|
| 提出日時 | 2015-08-28 13:40:01 |
| 言語 | Ruby (3.4.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 223 bytes |
| コンパイル時間 | 301 ms |
| コンパイル使用メモリ | 7,552 KB |
| 実行使用メモリ | 12,416 KB |
| 最終ジャッジ日時 | 2024-07-18 15:04:52 |
| 合計ジャッジ時間 | 3,041 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 20 |
コンパイルメッセージ
Syntax OK
ソースコード
ary = gets.chomp.split
mark_index = ["D", "C", "H", "S"]
number_index = ["A", "2", "3", "4", "5", "6", "7", "8", "9", "T", "J", "Q", "K"]
puts ary.sort_by{|str|[mark_index.index(str[0]), number_index.index(str[1])]} * " "
riokuma0810