結果
問題 | No.927 Second Permutation |
ユーザー |
|
提出日時 | 2020-12-16 07:03:00 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 176 bytes |
コンパイル時間 | 169 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 18,120 KB |
最終ジャッジ日時 | 2024-09-20 04:28:09 |
合計ジャッジ時間 | 5,102 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 4 WA * 17 TLE * 1 -- * 5 |
ソースコード
s=list(map(int,list(input())))l=sorted(s)[::-1]x=-1for i in range(1,len(s)):if l[-i]==0: breakl[-i],l[-i-1]=l[-i-1],l[-i]if l!=s: x=''.join(map(str,l)); breakprint(x)