結果

問題 No.256 桁の数字を入れ替え (2)
ユーザー JunOnumaJunOnuma
提出日時 2017-06-08 15:00:04
言語 Python2
(2.7.18)
結果
AC  
実行時間 39 ms / 2,000 ms
コード長 141 bytes
コンパイル時間 109 ms
コンパイル使用メモリ 7,104 KB
実行使用メモリ 7,692 KB
最終ジャッジ日時 2023-10-23 19:45:26
合計ジャッジ時間 819 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 12 ms
6,808 KB
testcase_01 AC 12 ms
6,808 KB
testcase_02 AC 38 ms
7,692 KB
testcase_03 AC 39 ms
7,692 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import Counter
c = Counter(list(raw_input()))
d = sorted(c.items(), reverse=True)
s = ''
for k,v in d:
    s += k*v
print s
0