結果
| 問題 |
No.267 トランプソート
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-03-18 00:09:15 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 40 ms / 1,000 ms |
| コード長 | 209 bytes |
| コンパイル時間 | 289 ms |
| コンパイル使用メモリ | 82,084 KB |
| 実行使用メモリ | 52,352 KB |
| 最終ジャッジ日時 | 2024-11-15 18:50:37 |
| 合計ジャッジ時間 | 2,235 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
ソースコード
Suit = ["D", "C", "H", "S"] Num = ["A"] + [str(i + 2) for i in range(8)] + ["T", "J", "Q", "K"] N = int(input()) C = list(input().split()) C.sort(key = lambda x: (Suit.index(x[0]), Num.index(x[1]))) print(*C)