結果

問題 No.267 トランプソート
ユーザー convexineqconvexineq
提出日時 2021-02-19 14:13:07
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 77 ms / 1,000 ms
コード長 181 bytes
コンパイル時間 288 ms
コンパイル使用メモリ 87,096 KB
実行使用メモリ 71,564 KB
最終ジャッジ日時 2023-10-14 08:30:04
合計ジャッジ時間 3,217 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
71,468 KB
testcase_01 AC 75 ms
71,424 KB
testcase_02 AC 77 ms
71,564 KB
testcase_03 AC 76 ms
71,260 KB
testcase_04 AC 77 ms
71,288 KB
testcase_05 AC 76 ms
71,124 KB
testcase_06 AC 76 ms
71,312 KB
testcase_07 AC 76 ms
71,384 KB
testcase_08 AC 76 ms
71,448 KB
testcase_09 AC 75 ms
71,268 KB
testcase_10 AC 75 ms
71,492 KB
testcase_11 AC 74 ms
71,232 KB
testcase_12 AC 74 ms
71,404 KB
testcase_13 AC 73 ms
71,116 KB
testcase_14 AC 74 ms
71,244 KB
testcase_15 AC 73 ms
71,484 KB
testcase_16 AC 72 ms
71,360 KB
testcase_17 AC 75 ms
71,460 KB
testcase_18 AC 75 ms
71,240 KB
testcase_19 AC 76 ms
71,388 KB
testcase_20 AC 75 ms
71,240 KB
testcase_21 AC 74 ms
71,312 KB
testcase_22 AC 73 ms
71,396 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

d1 = dict(zip("DCHS",[1000,2000,3000,4000]))
d2 = dict(zip("A23456789TJQK",range(1,14)))
def f(s): return d1[s[0]] + d2[s[1]]
n = input()
a = input().split()
a.sort(key=f)
print(*a)
0