Answered step by step
Verified Expert Solution
Question
1 Approved Answer
hapur was an extremely gifted student. He was great at everything including Combinatorics, Algebra, Number Theory, Geometry, Calculus, etc. He was not only smart but
hapur 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 numbers in a single second.
One day in 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 or The contestants should write a new number corresponding to the given pair of numbers. The rule is simple: The ith digit of the answer is if and only if the ith digit of the two given numbers differ. In the other case the ith digit of the answer is
Shapur made many numbers and first tried his own speed. He saw that he can perform these operations on numbers of length infty 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.
Input
There are two lines in each input. Each of them contains a single number. It is guaranteed that the numbers are made from and only and that their length is same. The numbers may start with The length of each number doesn't exceed
Output
Write one line the corresponding answer. Do not omit the leading s
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started