Add Binary Strings
Submissions: 4984   Accuracy:

29.82%

  Difficulty: Easy   Marks: 2

Given two binary strings s1 and s2. Print the resultant string after adding given two binary strings.

Input:
The first line of input contains an integer T denoting the number of test cases.
The first line of each test case contains two binary strings s1 and s2 separated by space.

Output:
For each test case print the resultant binary string.

Constraints:
1 <= T <= 70

1 <= |s1|, |s2| <= 200, where |s| represents the length of string s

Example:
Input:
2
1101 111
10 01

Output:
10100
11

** For More Input/Output Examples Use 'Expected Output' option **

Author: bhawnamait


If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.



Need help with your code? Please use ide.geeksforgeeks.org, generate link and share the link here.

to report an issue on this page.