結果

問題 No.39 桁の数字を入れ替え
ユーザー zazaboonzazaboon
提出日時 2019-04-12 14:55:54
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 81 ms / 5,000 ms
コード長 177 bytes
コンパイル時間 945 ms
コンパイル使用メモリ 87,272 KB
実行使用メモリ 71,584 KB
最終ジャッジ日時 2023-10-12 03:37:53
合計ジャッジ時間 4,025 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 78 ms
71,288 KB
testcase_01 AC 79 ms
71,384 KB
testcase_02 AC 79 ms
71,404 KB
testcase_03 AC 79 ms
71,584 KB
testcase_04 AC 78 ms
71,580 KB
testcase_05 AC 80 ms
71,372 KB
testcase_06 AC 79 ms
71,448 KB
testcase_07 AC 78 ms
71,448 KB
testcase_08 AC 79 ms
71,236 KB
testcase_09 AC 79 ms
71,444 KB
testcase_10 AC 79 ms
71,368 KB
testcase_11 AC 80 ms
71,580 KB
testcase_12 AC 81 ms
71,328 KB
testcase_13 AC 80 ms
71,172 KB
testcase_14 AC 79 ms
71,584 KB
testcase_15 AC 80 ms
71,304 KB
testcase_16 AC 81 ms
71,448 KB
testcase_17 AC 79 ms
71,084 KB
testcase_18 AC 80 ms
71,484 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

o=input()
a=o
for i in range(len(o)):
    for j in range(len(o)):
        s=list(o)
        s[i],s[j] = s[j],s[i]
        s = "".join(s)
        if s>a:
            a=s
print(a)
0