My solution is giving WA

Link to code : https://ide.codingblocks.com/s/221903
Shouldn’t the answer for given 3rd test case be 130 instead of 120
Pls explain how it got 120 & check my code.

@O17LPOLA020011
see this
Robot use pipeline => (20,20) --> (25, 25) -->(30,30) --> (100,100) , Total time = |20-25| +|20-25| + 5 + |30-100|+|30-100| = 155
if you are not able to think for logic see this code