結果

問題 No.729 文字swap
ユーザー McGregorshMcGregorsh
提出日時 2023-04-10 11:34:38
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 40 ms / 2,000 ms
コード長 93 bytes
コンパイル時間 309 ms
コンパイル使用メモリ 82,448 KB
実行使用メモリ 53,824 KB
最終ジャッジ日時 2024-04-15 17:54:28
合計ジャッジ時間 1,305 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 40 ms
52,268 KB
testcase_01 AC 38 ms
52,408 KB
testcase_02 AC 37 ms
53,208 KB
testcase_03 AC 37 ms
52,832 KB
testcase_04 AC 38 ms
52,564 KB
testcase_05 AC 36 ms
52,992 KB
testcase_06 AC 38 ms
53,724 KB
testcase_07 AC 37 ms
53,824 KB
testcase_08 AC 36 ms
52,728 KB
testcase_09 AC 38 ms
52,516 KB
testcase_10 AC 36 ms
52,440 KB
testcase_11 AC 37 ms
52,000 KB
testcase_12 AC 37 ms
52,860 KB
testcase_13 AC 37 ms
52,216 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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