結果

問題 No.729 文字swap
ユーザー pypypymipypypymi
提出日時 2022-02-04 12:21:40
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 75 ms / 2,000 ms
コード長 106 bytes
コンパイル時間 300 ms
コンパイル使用メモリ 87,292 KB
実行使用メモリ 71,524 KB
最終ジャッジ日時 2023-09-02 03:31:04
合計ジャッジ時間 2,594 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,372 KB
testcase_01 AC 72 ms
71,320 KB
testcase_02 AC 73 ms
71,184 KB
testcase_03 AC 73 ms
71,468 KB
testcase_04 AC 72 ms
71,480 KB
testcase_05 AC 74 ms
71,040 KB
testcase_06 AC 73 ms
71,176 KB
testcase_07 AC 72 ms
71,448 KB
testcase_08 AC 75 ms
71,524 KB
testcase_09 AC 72 ms
71,320 KB
testcase_10 AC 72 ms
71,316 KB
testcase_11 AC 71 ms
71,048 KB
testcase_12 AC 73 ms
71,176 KB
testcase_13 AC 73 ms
71,496 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

s = list(input())
i,j = map(int,input().split())
v1 = s[i]
v2 = s[j]
s[i] = v2
s[j] = v1
print("".join(s))
0