結果
問題 | No.267 トランプソート |
ユーザー |
|
提出日時 | 2018-12-05 13:28:04 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 30 ms / 1,000 ms |
コード長 | 355 bytes |
コンパイル時間 | 202 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-07-18 15:05:08 |
合計ジャッジ時間 | 1,528 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 20 |
ソースコード
n = int(input())m = list(input().split())d = [''] * 14c = d[:]h = d[:]s = d[:]for i in m:x = int({'A':1, 'T':10, 'J':11, 'Q':12, 'K':13}.get(i[1], i[1]))if 'D' in i:d[x] = ielif 'C' in i:c[x] = ielif 'H' in i:h[x] = ielif 'S' in i:s[x] = il = d + c + h + sprint(*[i for i in l if i])