結果
問題 | No.256 桁の数字を入れ替え (2) |
ユーザー | ABKZ |
提出日時 | 2023-01-28 15:45:28 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 193 bytes |
コンパイル時間 | 473 ms |
コンパイル使用メモリ | 86,752 KB |
実行使用メモリ | 84,604 KB |
最終ジャッジ日時 | 2023-09-11 04:39:15 |
合計ジャッジ時間 | 1,437 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 79 ms
71,204 KB |
testcase_01 | AC | 79 ms
71,396 KB |
testcase_02 | WA | - |
testcase_03 | WA | - |
ソースコード
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)))