Save the Graph
CodeChefOpen on judge ↗
The King of Dholakpur has called for Chhota Bheem !! Citizens of the kingdom of Dholakpur are trapped at all road intersections of the city. There are $N$ intersections in the city. $M$ weighted bi-directional roads run between the intersections of the city. However, currently, all roads have been destroyed by the witch. Bheem can acquire a magical potion of power $X$ ($X$ is an integer), usi
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