結果

問題 No.267 トランプソート
ユーザー 👑 rin204rin204
提出日時 2022-01-20 07:06:36
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 79 ms / 1,000 ms
コード長 318 bytes
コンパイル時間 295 ms
コンパイル使用メモリ 86,948 KB
実行使用メモリ 71,488 KB
最終ジャッジ日時 2023-08-15 08:25:44
合計ジャッジ時間 3,443 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
71,292 KB
testcase_01 AC 77 ms
71,312 KB
testcase_02 AC 77 ms
71,240 KB
testcase_03 AC 78 ms
71,268 KB
testcase_04 AC 78 ms
71,224 KB
testcase_05 AC 78 ms
71,236 KB
testcase_06 AC 77 ms
71,016 KB
testcase_07 AC 75 ms
71,276 KB
testcase_08 AC 77 ms
71,488 KB
testcase_09 AC 76 ms
71,424 KB
testcase_10 AC 78 ms
71,416 KB
testcase_11 AC 77 ms
71,072 KB
testcase_12 AC 78 ms
71,364 KB
testcase_13 AC 79 ms
71,252 KB
testcase_14 AC 78 ms
71,364 KB
testcase_15 AC 78 ms
71,404 KB
testcase_16 AC 78 ms
71,280 KB
testcase_17 AC 76 ms
71,240 KB
testcase_18 AC 77 ms
71,244 KB
testcase_19 AC 77 ms
71,240 KB
testcase_20 AC 75 ms
71,192 KB
testcase_21 AC 77 ms
71,192 KB
testcase_22 AC 77 ms
71,156 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())

tf = [[False] * 13 for _ in range(4)]
mark = "DCHS"
num = "A23456789TJQK"
M = list(input().split())
for mn in M:
    m, n = mn
    tf[mark.index(m)][num.index(n)] = True
    
ans = []
for i in range(4):
    for j in range(13):
        if tf[i][j]:
            ans.append(mark[i] + num[j])
print(*ans)
0