Stuck in a Path
CodeChefOpen on judge ↗
abhishek_1610 is fascinated by the travelling problems.While solving one, he got stuck at a problem given by his friend . Can you help him to solve the problem? He is given a path .The total number of points in the path is N. Also he is provided with cost C between the points. He is to reach from starting point SP to end point EP and calculate the cost to reach from starting point to end point. B
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