CHEF AND CHOCOLATES
CodeChefOpen on judge ↗
Chef is very fond of chocolates. There are 3 boxes which contain $A, B, C$ number of chocolates respectively. Chef is very health conscious so if he eats $X$ chocolates from Box 1 he has to eat $2X$ from Box 2 and $3X$ from Box 3. Chef wants to eat maximum number of chocolates. Help chef to select X such that he can eat maximum number of chocolates. ###Input: - First line will contain $T$, n
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