Survival Time
The apocalypse has arrived, and Alice and her $4$ other family members (a total of $5$ people) are now stuck in a shopping mall from where they have nowhere to run. Fortunately, the place where they are stuck has frozen buns which they can eat and survive. There are $N$ buns in the mall, and each member of the family needs to eat $X$ buns everyday to survive. After the food supply runs out,
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