Given a natural number with bits, we denote with its representation in base 2. For example, in base 2 is 1000, so and .
Write a program to mix the base 2 representations of two given natural numbers and with the same number of bits . That is, print .
Input consists of several cases, each with two natural numbers with the same number of bits, between 1 and 30.
For every case, print the mixing of the representations in base 2 of the two numbers.
Author: Unknown
Translator: Salvador Roura
Generation: 2026-01-25T11:09:36.562Z
© Jutge.org, 2006–2026.
https://jutge.org