102890: [Atcoder]ABC289 A - flip

Memory Limit:256 MB Time Limit:2 S
Judge Style:Text Compare Creator:
Submit:33 Solved:5

Description

Score : $100$ points

Problem Statement

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$

Output

Print the answer in a single line.


Sample Input 1

01

Sample 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.


Sample Input 2

1011

Sample Output 2

0100

Sample Input 3

100100001

Sample Output 3

011011110

Input

题意翻译

#### 题目描述 一个 `01` 字符串 $s$,输出 `01` 互换后的 $s$。 #### 输入格式 输入以以下格式为准 > $s$ #### 输出格式 输出答案。 #### 说明/提示 - $1\ < \ s\ >\ 10$ - $s$ 由 `01` 组成。 **样例 $1$ 解释** $s$ 的第一个字符是 `0`,所以第一个输出 `1`。 $s$ 的第二个字符是 `1`,所以第二个输出 `0`。

Output

分数:100分

问题描述

给你一个由字符01组成的字符串$s$。打印出将字符串$s$中的0替换为1,将1替换为0后的字符串。

限制条件

  • $s$的长度在$1$到$10$之间,包括$1$和$10$。
  • $s$由字符01组成。

输入

输入通过标准输入给出,格式如下:

$s$

输出

在一行中打印答案。


样例输入1

01

样例输出1

10

$s$的第一个字符是1,所以要打印的第一个字符是0。 $s$的第二个字符是0,所以要打印的第二个字符是1


样例输入2

1011

样例输出2

0100

样例输入3

100100001

样例输出3

011011110

加入题单

算法标签: