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.
InputThe first line will contain the first binary number and the second line will contain the second binary number.
OutputPrint the sum of the two numbers in binary.
ExampleInput101 11Output
1000Note
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