Problem description

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 1018 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 0 or 1. The contestants should write a new number corresponding to the given pair of numbers. The rule is simple: The i-th digit of the answer is 1if and only if the i-th digit of the two given numbers differ. In the other case the i-th digit of the answer is 0.

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.

Input

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

Output

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

Examples

Input

1010100
0100101

Output

1110001

Input

000
111

Output

111

Input

1110
1010

Output

0100

Input

01110
01100

Output

00010
解题思路:题目说辣么多,其实就是将两个二进制进行异或运算:相同位上的数字相同,异或结果为0,否则为1,水过!
AC代码:
 #include<bits/stdc++.h>
using namespace std;
int main(){
char s[],t[],r[];
memset(r,'\0',sizeof(r));
cin>>s>>t;
for(int i=;s[i]!='\0';++i){
if(s[i]==t[i])r[i]='';
else r[i]='';
}
cout<<r<<endl;
return ;
}
 

最新文章

  1. [WPF系列]-DynamicResource与StaticResource的区别
  2. Oracle存储过程中异常Exception的捕捉和处理
  3. Java程序员必须熟知的十项技术
  4. 我的ORM之十一 -- 缓存
  5. 《objective-c基础教程》学习笔记(十)—— 内存管理
  6. App Store上下载和安装Xcode
  7. mysql 免安装版本 命令安装
  8. for循环往Oracle中插入n条数据,主键自增
  9. IPoilygon转IPoint
  10. PHP常用的基本文件和目录操作总结
  11. jquery ajax 的data 存表单的值
  12. HTTPClient实现java自动登录人人网
  13. VC++界面编程之--使用分层窗口实现界面皮肤
  14. CDN概念+作用+特点+原理
  15. PLSQL程序流程
  16. MySQL5.7下修改root密码
  17. 前端系列——jquery前端国际化解决方案“填坑日记”
  18. 【Python3之函数对象】
  19. 概念数据模型CDM基础
  20. computed,methods,watch

热门文章

  1. Functor and Monad in Swift
  2. SharePoint Designer 2013 开启新式验证(Modern Authentication)
  3. 复习MySQL⑤查询、常用函数
  4. CentOS7下安装docker(Docker系列1)
  5. js中三个默认方法call,applay,bind
  6. opencart的语言包安装
  7. JavaSE 学习笔记之接 口(六)
  8. 1012关于SYSBENCH的用法
  9. 0802关于mysql数据库的锁机制
  10. POJ 1966