結果

問題 No.729 文字swap
ユーザー HAGI_TAROHAGI_TARO
提出日時 2021-09-18 14:45:08
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 71 ms / 2,000 ms
コード長 174 bytes
コンパイル時間 379 ms
コンパイル使用メモリ 87,260 KB
実行使用メモリ 71,448 KB
最終ジャッジ日時 2023-09-13 01:26:25
合計ジャッジ時間 2,809 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,240 KB
testcase_01 AC 71 ms
71,328 KB
testcase_02 AC 70 ms
71,336 KB
testcase_03 AC 71 ms
71,408 KB
testcase_04 AC 69 ms
71,320 KB
testcase_05 AC 69 ms
71,256 KB
testcase_06 AC 68 ms
71,408 KB
testcase_07 AC 70 ms
71,412 KB
testcase_08 AC 69 ms
71,408 KB
testcase_09 AC 69 ms
71,416 KB
testcase_10 AC 69 ms
71,408 KB
testcase_11 AC 69 ms
71,448 KB
testcase_12 AC 71 ms
71,116 KB
testcase_13 AC 70 ms
71,236 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

s = input()
s_list = [s[i] for i in range(len(s))]
i,j = map(int,input().split())
temp = s_list[i]
s_list[i] = s_list[j]
s_list[j] = temp
for i in s_list:
    print(i,end="")
0