結果
問題 | No.267 トランプソート |
ユーザー | Konton7 |
提出日時 | 2019-05-16 23:28:15 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 32 ms / 1,000 ms |
コード長 | 410 bytes |
コンパイル時間 | 107 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-09-17 05:42:58 |
合計ジャッジ時間 | 1,777 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 20 |
ソースコード
n = int(input()) card_list = [ v for v in input().split() ] sorted_list = [ "" for v in range(52) ] suit_list = ["D","C","H","S"] number_list = ["A","2","3","4","5","6","7","8","9","T","J","Q","K"] for i in card_list: s = 13 * suit_list.index(i[0]) + number_list.index(i[1]) sorted_list[s] = i output_list = [ sorted_list[i] for i in range(52) if sorted_list[i] != ""] print(" ".join(output_list))