Another problem on graphs
Kindly share your approach to solve this problem.
Any help is highly appreciated.
Atcoder Beginner 353 Solution Discussion (with myself)