結果
| 問題 | No.39 桁の数字を入れ替え |
| コンテスト | |
| ユーザー |
compass19
|
| 提出日時 | 2017-01-04 12:05:07 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 20 ms / 5,000 ms |
| + 784µs | |
| コード長 | 246 bytes |
| 記録 | |
| コンパイル時間 | 54 ms |
| コンパイル使用メモリ | 14,976 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2026-09-08 17:02:17 |
| 合計ジャッジ時間 | 1,773 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_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