The making of a cake
CodeChefOpen on judge ↗
CodeChef has received an order from the President of Mithai country for his son's birthday cake. The president is a person of very high temper and CodeChef doesn't want to tick him off, so he had to prepare a cake exactly as described by the President's son. He asked for a cake with **N** layers and each layer has to be of a type specified by him. The type of layer is represented by a lowercase le
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