結果

問題 No.267 トランプソート
ユーザー Akijin_007Akijin_007
提出日時 2023-08-31 18:18:05
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 79 ms / 1,000 ms
コード長 238 bytes
コンパイル時間 1,876 ms
コンパイル使用メモリ 86,436 KB
実行使用メモリ 71,352 KB
最終ジャッジ日時 2023-08-31 18:18:11
合計ジャッジ時間 4,268 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 65 ms
71,336 KB
testcase_01 AC 66 ms
70,976 KB
testcase_02 AC 67 ms
71,240 KB
testcase_03 AC 68 ms
71,352 KB
testcase_04 AC 67 ms
71,000 KB
testcase_05 AC 66 ms
70,840 KB
testcase_06 AC 64 ms
71,260 KB
testcase_07 AC 64 ms
71,212 KB
testcase_08 AC 65 ms
71,168 KB
testcase_09 AC 65 ms
71,296 KB
testcase_10 AC 64 ms
71,052 KB
testcase_11 AC 64 ms
70,980 KB
testcase_12 AC 65 ms
71,292 KB
testcase_13 AC 79 ms
71,248 KB
testcase_14 AC 64 ms
71,304 KB
testcase_15 AC 66 ms
70,936 KB
testcase_16 AC 65 ms
71,208 KB
testcase_17 AC 64 ms
71,240 KB
testcase_18 AC 65 ms
70,968 KB
testcase_19 AC 65 ms
71,236 KB
testcase_20 AC 67 ms
71,216 KB
testcase_21 AC 65 ms
71,244 KB
testcase_22 AC 65 ms
71,168 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
S = list(input().split())

a = "DCHS"
b = "A23456789TJQK"
c = []

for i in range(N):
    u = a.index(S[i][0])
    v = b.index(S[i][1])
    c.append((u, v, S[i]))

c = sorted(c)
print(" ".join([c[i][2] for i in range(N)]))
0