← All problemsSign in

Nuttela in Hyderabad

Nuttela was busy in math when he observed some behavior of numbers. He used two number $A$ and $B$ and could do the following operations on them. - $A$ can be incremented to $2A$ - $B$ can be decremented to $B - 2$ By doing these operations any number of times (including zero). Can $A$ and $B$ be made equal ? Nuttela has not yet solved the problem. Can you help our confused nuttela? ###Input:

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start