結果

問題 No.256 桁の数字を入れ替え (2)
ユーザー 👑 rin204rin204
提出日時 2020-06-25 13:55:04
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
(最新)
AC  
(最初)
実行時間 -
コード長 162 bytes
コンパイル時間 91 ms
コンパイル使用メモリ 10,616 KB
実行使用メモリ 8,468 KB
最終ジャッジ日時 2023-09-16 22:38:17
合計ジャッジ時間 853 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,780 KB
testcase_01 AC 17 ms
7,712 KB
testcase_02 RE -
testcase_03 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

n = input()
lst = [0 for _ in range(10)]
for num in n:
    lst[int(num)] += 1
ans = ""
for i, num in enumerate(lst):
    ans += str(i) * num
print(int(ans[::-1]))
0