結果
問題 | No.39 桁の数字を入れ替え |
ユーザー |
![]() |
提出日時 | 2017-06-14 15:39:20 |
言語 | Python2 (2.7.18) |
結果 |
WA
|
実行時間 | - |
コード長 | 191 bytes |
コンパイル時間 | 351 ms |
コンパイル使用メモリ | 7,040 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-24 20:41:10 |
合計ジャッジ時間 | 1,146 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 15 WA * 4 |
ソースコード
s = raw_input()p = s.rfind(max(s))q = 0while q < p:if s[q] < s[p]:l = list(s)l[p] = s[q]l[q] = s[p]s = ''.join(l)breakq += 1print s