[Solved] The Kingdom Division CodeCrush by NewtonSchool
This Valentine, Olivia is visiting the kingdom of Berland. Being the King of Berland, John wants Olivia to enjoy the setting before he asks her to marry him. The kingdom consists of N cities and M roads. The Ith road connects cities Ui and Vi bidirectionally. It is guaranteed that…