結果
| 問題 |
No.729 文字swap
|
| コンテスト | |
| ユーザー |
_KingdomOfMoray
|
| 提出日時 | 2019-12-06 09:16:13 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 36 ms / 2,000 ms |
| コード長 | 208 bytes |
| コンパイル時間 | 140 ms |
| コンパイル使用メモリ | 12,800 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-12-23 05:00:53 |
| 合計ジャッジ時間 | 1,421 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 11 |
ソースコード
s = input() index_list = list(map(int,input().split())) listed_s = list(s) i1 = index_list[0] i2 = index_list[1] listed_s[i1], listed_s[i2] = listed_s[i2], listed_s[i1] res = ''.join(listed_s) print(res)
_KingdomOfMoray