結果

問題 No.729 文字swap
ユーザー McGregorshMcGregorsh
提出日時 2023-04-10 11:34:38
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 36 ms / 2,000 ms
コード長 93 bytes
コンパイル時間 200 ms
コンパイル使用メモリ 82,116 KB
実行使用メモリ 52,820 KB
最終ジャッジ日時 2024-10-05 19:24:13
合計ジャッジ時間 1,273 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

s = list(input())
a, b = map(int, input().split())
s[a], s[b] = s[b], s[a]
print(''.join(s))
0