Marys_Homemade_Cupcakes
CodeChefOpen on judge ↗
You have just opened a cupcake bakery and you are in charge of the cupcake section. Everyday you bake n no. of cupcakes at the bakery. There is a huge queue for buying the cupcakes. There can be more people than you can serve so some might have to return empty handed. You are serving each customer one after the another. Each customer wants some number of cupcakes. If you can serve that customer
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