Shortest path queries | CodeChef