Hawk and gift box
CodeChefOpen on judge ↗
Ms. Khan likes eating chocolates, she has $B$ number of chocolates in her bag. Ms. Khan becomes happy if she gets a gift box filled with a number of chocolates $A$ which is divisible by the chocolates she already have ($B$) in her bag. To make Ms. Khan happy, Mr. Hawk is preparing a gift box which already have $X$ number of chocolates inside. And Mr. Hawk puts one chocolate every day in that box.
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