Yummy Cakes
CodeChefOpen on judge ↗
Shrirupa loves Cakes so much that everyday she wants atleast one slice of it.There is a confectionary shop near her house, which sells tasty Cakes.So, one day, Shrirupa went to that shop and purchased "n" slices of different cakes, having different sizes(not necessary that all sizes are distinct). Being a bit innovative, she tried something different. She bought some candies, took all those "n" sl
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