結果
問題 | No.256 桁の数字を入れ替え (2) |
ユーザー | motor_radial |
提出日時 | 2019-08-14 18:38:29 |
言語 | Python3 (3.11.6 + numpy 1.26.0 + scipy 1.11.3) |
結果 |
WA
|
実行時間 | - |
コード長 | 161 bytes |
コンパイル時間 | 95 ms |
コンパイル使用メモリ | 11,852 KB |
実行使用メモリ | 11,480 KB |
最終ジャッジ日時 | 2023-10-19 18:12:06 |
合計ジャッジ時間 | 946 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge11 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 30 ms
9,964 KB |
testcase_01 | AC | 30 ms
9,964 KB |
testcase_02 | WA | - |
testcase_03 | WA | - |
ソースコード
N=list(input()) max_f=N.index(max(N)) N[0],N[max_f]=N[max_f],N[0] S=N[1:len(N)] max_s=S.index(max(S)) S[0],S[max_s]=S[max_s],S[0] S="".join(S) print(str(N[0])+S)