結果
問題 |
No.256 桁の数字を入れ替え (2)
|
ユーザー |
|
提出日時 | 2023-01-28 15:45:28 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 193 bytes |
コンパイル時間 | 260 ms |
コンパイル使用メモリ | 82,176 KB |
実行使用メモリ | 75,264 KB |
最終ジャッジ日時 | 2024-06-28 19:06:01 |
合計ジャッジ時間 | 868 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 2 WA * 2 |
ソースコード
N = list(map(int, [*input()])) head = max(N) idx = N.index(max(N)) N[0], N[idx] = N[idx], N[0] N.pop(0) idx = N.index(max(N)) N[0], N[idx] = N[idx], N[0] print(''.join(map(str, [head]+N)))