← All problemsSign in

Orange Factory

“Orange Factory” is an orange supply company which supplies oranges to retailers. They have M classes of oranges. Each class can have N number of oranges (N can be the same or can vary class to class. They accept order via mail for X oranges. In response, they confirm if they can supply the oranges with a “Thank you” note and the number of oranges or with a “Sorry” note and the numbers of oranges

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