Minggu, 15 Januari 2017

UVA 10469 - To Carry or not to Carry Solution

Problem Statement: To Carry or not to Carry

Explanation

Convert the input to binary and add both binary. Everytime you add a different bit (0 + 1 or 1 + 0) add the decimal value that represent the bit to the result.

Source Code

Tidak ada komentar:

Posting Komentar