Priest and the Laddus
CodeChefOpen on judge ↗
Saptami and Ashtami are considered as important days in Hindu festivities. A common event in these is to distribute sweets i.e. laddus to the devotees after the Puja for Saptami and Ashtami are over. Since there are many devotees visiting the temple on these auspicious days, the temple's priest has devised a plan to maintain a special system at the end of the Puja. For distributing the sweets in a
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