← All problemsSign in

One Egg

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

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