apple pie's submission of Another Shortest Paths Problem | CodeChef