結果
問題 | No.267 トランプソート |
ユーザー |
|
提出日時 | 2019-08-08 13:56:55 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 29 ms / 1,000 ms |
コード長 | 427 bytes |
コンパイル時間 | 201 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-07-18 19:28:00 |
合計ジャッジ時間 | 1,798 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 20 |
ソースコード
_ = int(input()) d = ['DA'] + ['D' + str(i) for i in range(2, 10)] + ['DT', 'DJ', 'DQ', 'DK'] c = ['CA'] + ['C' + str(i) for i in range(2, 10)] + ['CT', 'CJ', 'CQ', 'CK'] h = ['HA'] + ['H' + str(i) for i in range(2, 10)] + ['HT', 'HJ', 'HQ', 'HK'] s = ['SA'] + ['S' + str(i) for i in range(2, 10)] + ['ST', 'SJ', 'SQ', 'SK'] l = d + c + h + s m = [l.index(i) for i in input().split()] n = [l[i] for i in sorted(m)] print(*n)