CF61A.Ultra-Fast Mathematician

普及/提高-

通过率:0%

AC君温馨提醒

该题目为【codeforces】题库的题目,您提交的代码将被提交至codeforces进行远程评测,并由ACGO抓取测评结果后进行展示。由于远程测评的测评机由其他平台提供,我们无法保证该服务的稳定性,若提交后无反应,请等待一段时间后再进行重试。

题目描述

Shapur was an extremely gifted student. He was great at everything including Combinatorics, Algebra, Number Theory, Geometry, Calculus, etc. He was not only smart but extraordinarily fast! He could manage to sum 101810^{18} numbers in a single second.

One day in 230 AD Shapur was trying to find out if any one can possibly do calculations faster than him. As a result he made a very great contest and asked every one to come and take part.

In his contest he gave the contestants many different pairs of numbers. Each number is made from digits 00 or 11 . The contestants should write a new number corresponding to the given pair of numbers. The rule is simple: The ii -th digit of the answer is 11 if and only if the ii -th digit of the two given numbers differ. In the other case the ii -th digit of the answer is 00 .

Shapur made many numbers and first tried his own speed. He saw that he can perform these operations on numbers of length (length of a number is number of digits in it) in a glance! He always gives correct answers so he expects the contestants to give correct answers, too. He is a good fellow so he won't give anyone very big numbers and he always gives one person numbers of same length.

Now you are going to take part in Shapur's contest. See if you are faster and more accurate.

输入格式

There are two lines in each input. Each of them contains a single number. It is guaranteed that the numbers are made from 00 and 11 only and that their length is same. The numbers may start with 00 . The length of each number doesn't exceed 100.

输出格式

Write one line — the corresponding answer. Do not omit the leading 00 s.

输入输出样例

  • 输入#1

    1010100
    0100101
    

    输出#1

    1110001
    
  • 输入#2

    000
    111
    

    输出#2

    111
    
  • 输入#3

    1110
    1010
    

    输出#3

    0100
    
  • 输入#4

    01110
    01100
    

    输出#4

    00010
    
首页