← All problemsSign in

D - Chef and The Gold Coins

This Diwali chef decides to stay in Una district of Himachal Pradesh, as the chef got to know goddess Lakshmi has given a lot of gold coins to the people living in the Una district. After Diwali chef plans to visit each house of his Colony to meet new people. Whenever chef visited a house some of the families gave 1 gold coin from the treasure by goddess Lakshmi and some didn't gave anything.

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