471. Add Binary
EasyMath
Print the sum of two binary strings as a binary string.
Input format
Line 1: a Line 2: b
Output format
The binary sum.
Example 1
Input
11 1
Output
100
Example 2
Input
1010 1011
Output
10101
Constraints
1 ≤ lengths ≤ 10⁴
Read input from standard input and print the answer to standard output. Your code is judged against 4 test cases, most of them hidden.
Loading the MyLoginn IDE…