結果

問題 No.256 桁の数字を入れ替え (2)
ユーザー shinshin
提出日時 2022-11-19 15:46:29
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 221 ms / 2,000 ms
コード長 147 bytes
コンパイル時間 122 ms
コンパイル使用メモリ 11,820 KB
実行使用メモリ 11,576 KB
最終ジャッジ日時 2023-10-20 20:10:10
合計ジャッジ時間 1,645 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 27 ms
10,144 KB
testcase_01 AC 25 ms
10,144 KB
testcase_02 AC 218 ms
11,576 KB
testcase_03 AC 221 ms
11,576 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#桁の数字を入れ替え(2)

N = list(map(int , list(input())))

N.sort()
N.reverse()

ans = ""

for i in N:
    ans += str(i)

print(ans)
0