407075: GYM102697 046 Binary Math

Memory Limit:256 MB Time Limit:1 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

046. Binary Mathtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard output

Given two strings that represent binary numbers, return the sum of the 2 numbers in binary.

Input

The first line will contain the first binary number and the second line will contain the second binary number.

Output

Print the sum of the two numbers in binary.

ExampleInput
101
11
Output
1000
Note

If you need help understanding how to read numbers in binary, you can check out the following link: https://medium.com/@LindaVivah/learn-how-to-read-binary-in-5-minutes-dac1feb991e

加入题单

上一题 下一题 算法标签: