flip

AtCoder
IDabc289_a
Time2000ms
Memory256MB
Difficulty
You are given a string $s$ consisting of two kinds of characters, `0` and `1`. Print the string obtained by replacing `0` with `1` and `1` with `0` in $s$. ## Constraints * The length of $s$ is between $1$ and $10$, inclusive. * $s$ consists of two kinds of characters, `0` and `1`. ## Input The input is given from Standard Input in the following format: $s$ [samples]
Samples
Input #1
01
Output #1
10

The $1$\-st character of $s$ is `1`, so the $1$\-st character to print is `0`. The $2$\-nd character of $s$ is `0`, so the $2$\-nd character to print is `1`.
Input #2
1011
Output #2
0100
Input #3
100100001
Output #3
011011110
API Response (JSON)
{
  "problem": {
    "name": "flip",
    "description": {
      "content": "You are given a string $s$ consisting of two kinds of characters, `0` and `1`. Print the string obtained by replacing `0` with `1` and `1` with `0` in $s$.",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "abc289_a"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "You are given a string $s$ consisting of two kinds of characters, `0` and `1`. Print the string obtained by replacing `0` with `1` and `1` with `0` in $s$.\n\n## Constraints\n\n*   The length of $s$ is be...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments