← All problemsSign in

James and his Factory

James owns a factory that manufactures food items like chips and cokes. One day he got an order of 100 chips and 150 coke must be delivered before a specific time. He was very happy because that was a huge order for him, he doesn't want to lose that chance. But the manufacturing unit manufactured some broken chips and the few coke tins were open. By hearing this James became so aggressive and worr

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