763 - Fibinary Numbers
Solution Description : Fibonacci Number Problem At first pre-generate first 105 Fibonacci numbers. (using Big Integer) Input line1 Convert it to decimal format using Fibonacci list and store it to variable a. Input line2 Convert it to decimal format using Fibonacci list and store it to variable b. Convert (a+b) to 1,0 format using Fibonacci list. And print it. Remember if input: 0 0 then output: 0 try this input: 100000001010001010001010001000 100000001010001010001010001000 Output: 100100010000100100100100100010 You can test input bellow maximum 60 digits. |
||||||||||