Chefiya in Chefland
CodeChefOpen on judge ↗
Chef's little girl Chefiya wants to buy a new toy but she is short of pocket money! The toy costs $C$ Rupees. Being the wonderland Chefland is, it is full of mysteries and Chefiya didn't lose hope. One fine morning to her great wonder she found a magical piggy bank! She soon discovered that she could put some money into it each morning and in the dark of the night the money contained in the pigg
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