Hello Guys ,

Today I was solving ZIO 2005 , Q5 and I was getting wrong answer for b and c subtasks and even after verifying many times I am unable to find a fault in this

I will attach the picture of my calculations . Here it is :

b subtask :

c subtask :

I solved this problem by both brute force and dijkstra algorithm and still the answer is coming out to be same

Have i done any mistake in calculating the energy required for each slope or is the answer wrong ?

Someone pls help me with this

Thanks a lot !