chukodai

AtCoder
IDabc236_a
Time2000ms
Memory256MB
Difficulty
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: $S$ $a$ $b$ [samples]
Samples
Input #1
chokudai
3 5
Output #1
chukodai

After swapping the $3$\-rd character `o` and $5$\-th character `u` of `chokudai`, we have `chukodai`.
Input #2
aa
1 2
Output #2
aa

In this sample, after swapping the $1$\-st and $2$\-nd characters of $S$, we have the same string as $S$.
Input #3
aaaabbbb
1 8
Output #3
baaabbba
API Response (JSON)
{
  "problem": {
    "name": "chukodai",
    "description": {
      "content": "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.",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "abc236_a"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "You are given a string $S$ consisting of lowercase English letters.\nSwap the $a$\\-th and $b$\\-th characters from the beginning of $S$ and print the resulting string.\n\n## Constraints\n\n*   $S$ is a stri...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments