← All problemsSign in

Million Dollar Vicky

Vicky wishes to be the richest ice cream parlor owner of Varanasi. For this he must install ice cream parlors on the roads such that every road has at least one such parlor. Vicky has figured out that the obvious optimal strategy would be to install them on the junctions of roads so that more than one road gets covered by a single ice cream parlor (A junction, as considered here, can also be the e

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