結果
問題 | No.267 トランプソート |
ユーザー |
![]() |
提出日時 | 2015-08-28 13:43:01 |
言語 | Ruby (3.4.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 221 bytes |
コンパイル時間 | 29 ms |
コンパイル使用メモリ | 7,552 KB |
実行使用メモリ | 12,288 KB |
最終ジャッジ日時 | 2024-07-18 15:04:55 |
合計ジャッジ時間 | 2,477 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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])]}*' '