The Great Game
CodeChefOpen on judge ↗
Raju and Ammu were bored with their academics. So for relaxation, they decided to play a game. The game is as follows : Ammu will give two numbers $A$ and $B$. Raju's task is to swap the last 4 bits of the given numbers in its binary representation and output the numbers in decimal after the operation. Can you help Raju? ### Input - First-line -> $T$ Testcases - Next $T$ lines contain two numb
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start