← All problemsSign in

EQUAL NUMBERS

Nobita has two integers $A$ and $B$. Nobita wants to make these two numbers equal. He is allowed to modify the numbers according to the given condition. In operation 1, he can choose $A$ or $B$ and add 1 to it. In operation 2, he can choose $A$ or $B$ and add 2 to it. Similarly, At operation $i$, he can choose $A$ or $B$ and add $i$ to it. What is the minimum number of operatio

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