#abc236a. A - chukodai
A - chukodai
Score : points
问题描述
你将得到一个由小写英文字母组成的字符串 。
交换 开头的第 个和第 个字符,并输出变换后的字符串。
以上为通义千问 qwen-max 翻译,仅供参考。
Problem Statement
You are given a string consisting of lowercase English letters.
Swap the -th and -th characters from the beginning of and print the resulting string.
Constraints
- is a string consisting of lowercase English letters.
- The length of , , satisfies .
- and are integers.
Input
Input is given from Standard Input in the following format:
Output
Print the answer.
Sample Input 1
chokudai
3 5
Sample Output 1
chukodai
After swapping the -rd character o
and -th character u
of chokudai
, we have chukodai
.
Sample Input 2
aa
1 2
Sample Output 2
aa
In this sample, after swapping the -st and -nd characters of , we have the same string as .
Sample Input 3
aaaabbbb
1 8
Sample Output 3
baaabbba
update @ 2024/3/10 10:13:07