結果
| 問題 | No.729 文字swap |
| コンテスト | |
| ユーザー |
_KingdomOfMoray
|
| 提出日時 | 2019-12-06 09:16:13 |
| 言語 | Python3 (3.15.0 + numpy 2.5.4 + scipy 1.18.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 20 ms / 2,000 ms |
| + 931µs | |
| コード長 | 208 bytes |
| 記録 | |
| コンパイル時間 | 56 ms |
| コンパイル使用メモリ | 15,232 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2026-10-06 08:57:40 |
| 合計ジャッジ時間 | 1,656 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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