#AT2045. A - chukodai
A - chukodai
当前没有测试数据。
A - chukodai
Score : $100$ points
Problem Statement
You are given a string $S$ consisting of lowercase English letters.
Swap the $a$-th and $b$-th characters from the beginning of $S$ and print the resulting string.
Constraints
- $S$ is a string consisting of lowercase English letters.
- The length of $S$, $|S|$, satisfies $2 \leq |S| \leq 10$.
- $1 \leq a < b \leq |S|$
- $a$ and $b$ are integers.
Input
Input is given from Standard Input in the following format:
Output
Print the answer.
chokudai
3 5
chukodai
After swapping the $3$-rd character o
and $5$-th character u
of chokudai
, we have chukodai
.
aa
1 2
aa
In this sample, after swapping the $1$-st and $2$-nd characters of $S$, we have the same string as $S$.
aaaabbbb
1 8
baaabbba