#abc289a. A - flip
A - flip
Score : points
问题描述
你将得到一个由两种字符组成的字符串 ,分别为 0和1。请打印在 中将 0替换为1,并将 1替换为0 后得到的新字符串。
以上为通义千问 qwen-max 翻译,仅供参考。
Problem Statement
You are given a string consisting of two kinds of characters, 0 and 1. Print the string obtained by replacing 0 with 1 and 1 with 0 in .
Constraints
- The length of is between and , inclusive.
- consists of two kinds of characters,
0and1.
Input
The input is given from Standard Input in the following format:
Output
Print the answer in a single line.
Sample Input 1
01
Sample Output 1
10
The -st character of is 1, so the -st character to print is 0. The -nd character of is 0, so the -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