#abc289a. A - flip

A - flip

Score : 100100 points

问题描述

你将得到一个由两种字符组成的字符串 s\color{blue} s,分别为 01。请打印在 ss 中将 0替换为1,并将 1替换为0 后得到的新字符串。

以上为通义千问 qwen-max 翻译,仅供参考。

Problem Statement

You are given a string ss consisting of two kinds of characters, 0 and 1. Print the string obtained by replacing 0 with 1 and 1 with 0 in ss.

Constraints

  • The length of ss is between 11 and 1010, inclusive.
  • ss consists of two kinds of characters, 0 and 1.

Input

The input is given from Standard Input in the following format:

ss

Output

Print the answer in a single line.

Sample Input 1

01

Sample Output 1

10

The 11-st character of ss is 1, so the 11-st character to print is 0. The 22-nd character of ss is 0, so the 22-nd character to print is 1.

Sample Input 2

1011

Sample Output 2

0100

Sample Input 3

100100001

Sample Output 3

011011110

update @ 2024/3/10 12:03:25