結果
問題 |
No.256 桁の数字を入れ替え (2)
|
ユーザー |
|
提出日時 | 2018-01-13 00:45:26 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 173 bytes |
コンパイル時間 | 90 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 12,032 KB |
最終ジャッジ日時 | 2024-12-24 00:55:51 |
合計ジャッジ時間 | 1,750 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 2 RE * 2 |
ソースコード
n=list(map(int,input())) n.sort() ans="" anw="" for i in n: ans+=str(i) n.reverse() for i in n: anw+=str(i) if int(ans)<int(anw): print(anw) else: print(ans)