結果

問題 No.267 トランプソート
ユーザー mlihua09mlihua09
提出日時 2020-09-01 18:33:41
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 41 ms / 1,000 ms
コード長 229 bytes
コンパイル時間 237 ms
コンパイル使用メモリ 82,384 KB
実行使用メモリ 53,612 KB
最終ジャッジ日時 2024-04-30 12:24:58
合計ジャッジ時間 2,212 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
51,940 KB
testcase_01 AC 39 ms
52,008 KB
testcase_02 AC 38 ms
53,612 KB
testcase_03 AC 39 ms
53,136 KB
testcase_04 AC 39 ms
52,092 KB
testcase_05 AC 39 ms
52,928 KB
testcase_06 AC 39 ms
53,348 KB
testcase_07 AC 39 ms
52,468 KB
testcase_08 AC 41 ms
52,988 KB
testcase_09 AC 39 ms
52,336 KB
testcase_10 AC 39 ms
52,184 KB
testcase_11 AC 39 ms
52,440 KB
testcase_12 AC 41 ms
53,312 KB
testcase_13 AC 40 ms
52,960 KB
testcase_14 AC 39 ms
52,320 KB
testcase_15 AC 38 ms
53,284 KB
testcase_16 AC 39 ms
52,244 KB
testcase_17 AC 38 ms
52,060 KB
testcase_18 AC 39 ms
51,876 KB
testcase_19 AC 41 ms
53,556 KB
testcase_20 AC 39 ms
52,240 KB
testcase_21 AC 40 ms
53,132 KB
testcase_22 AC 39 ms
52,064 KB
権限があれば一括ダウンロードができます

ソースコード

diff #



N = int(input())
X = ['D', 'C', 'H', 'S']

Y = ['A', '2', '3', '4', '5', '6', '7', '8', '9', 'T', 'J', 'Q', 'K']

Z = [[X.index(i[0]), Y.index(i[1:])] for i in input().split()]

Z.sort()

print(*(X[i[0]] + Y[i[1]] for i in Z))
0