SPOJ FISHER Updates - take path with minimal time when cost is minimal