← All problemsSign in

Special Treat

Aditi has won 1st prize in a debate competition held in her school, and now her friends are demanding a treat for the same. Now, Aditi does not want to spend a huge amount of money from her piggy bank. She, being a clever girl, decided to fool her friends so that she could save her money. She told them, "I have divided my money separately for each one of you and I will not spend a single penny mor

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start