[My Solution] (CodeChef: Practical coding for everyone)
From what I understand of the problem:
- Check if the cities are valid
- Check if the paths are valid
- Check for distinct cities
I believe I have done the following and am unable to understand the reason for the WA. I found similar logic in other users’ solutions.