結果
| 問題 | No.39 桁の数字を入れ替え |
| コンテスト | |
| ユーザー |
compass19
|
| 提出日時 | 2017-01-04 12:05:07 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 117 ms / 5,000 ms |
| コード長 | 246 bytes |
| 記録 | |
| コンパイル時間 | 469 ms |
| コンパイル使用メモリ | 20,952 KB |
| 実行使用メモリ | 15,360 KB |
| 最終ジャッジ日時 | 2026-04-18 17:09:41 |
| 合計ジャッジ時間 | 4,181 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 19 |
ソースコード
n = list(map(int, list(input()))) for i in range(len(n)): n_max = max(n[i:]) n_max_index = len(n) - n[::-1].index(n_max) - 1 if n[i] == n_max: continue n[i], n[n_max_index] = n[n_max_index], n[i] break for i in n: print(i, end='') print()
compass19