結果

問題 No.256 桁の数字を入れ替え (2)
ユーザー Dexctersu
提出日時 2017-11-23 10:59:55
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
RE  
(最新)
AC  
(最初)
実行時間 -
コード長 140 bytes
コンパイル時間 95 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 12,296 KB
最終ジャッジ日時 2024-11-26 22:14:29
合計ジャッジ時間 814 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 2 RE * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

n=list(input())
n.sort()
ans="".join(n[::-1])
ans_s=int(ans)
n_s="".join(n)
num=int(n_s)
if num<ans_s:
    print(ans_s)
else:
    print(num)
0