← All problemsSign in

Chocolate Boxes

Chef has two types of chocolate boxes __A__ and __B__. He has _x_ boxes of type A and _y_ boxes of type B. He wants to gift chocolates to __3__ of his friends. Chef can gift chocolates to his friends in 3 following ways: + He can divide all __A__ type chocolates (_x_) and give them to his friends. + He can divide all __B__ type chocolates (_y_) and give them to his friends. + He can

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