The Christmas Cookies
CodeChefOpen on judge ↗
CodeChef has prepared Christmas cookies for everyone in the town. He gives the responsibility of distributing the cookies to Samosa Bhai. There are **N** houses and **E** roads in the town. Each road starts from one house and ends at another, and there are no other houses on the road. **There can be more than one direct road between two houses**. Each road has some road tax. Once you have paid th
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