G for Graph
CodeChefOpen on judge ↗
The Chef and his programmer friend are planning to go out on holidays. They have prepared a list of 4 places to visit. With the help of google maps, Chef's friend has written the distance between the places where they are going to visit. It is a list of length $m$ where each row consists of the starting point, destination and the distance between the two places.
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