結果

問題 No.256 桁の数字を入れ替え (2)
ユーザー RK PythonRK Python
提出日時 2020-06-03 11:57:24
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 46 ms / 2,000 ms
コード長 118 bytes
コンパイル時間 174 ms
コンパイル使用メモリ 10,588 KB
実行使用メモリ 8,288 KB
最終ジャッジ日時 2023-08-16 13:37:58
合計ジャッジ時間 866 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,748 KB
testcase_01 AC 16 ms
7,828 KB
testcase_02 AC 46 ms
8,268 KB
testcase_03 AC 45 ms
8,288 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = input()
nums = [0]*10
for n in N:
    nums[int(n)] += 1
print("".join([str(i)*nums[i] for i in range(9, -1, -1)]))
0