Getting WA ?
I was solving tourists problem on kattis and keep on getting WA ,I can't understand what I am doing wrong.Pls help! Here is a link to my code.