Want explanation of a problem(on codeforces) based on connected component

[https://codeforces.com/contest/22/problem/E] (https://codeforces.com/contest/22/problem/E) .Above is the link of problem.Its a very nice question but i am unable to understand the tutorial of problem.If anyone who has a good
understanding in cc please explain the problem.It would be a great Help.
@ssjgz or anyone who knows or has a idea how to solve the problem please tell.

please help on this

What you are looking for is not a short answer, you need a detailed explanation that overcomes the difficulties that you could not understand in the tutorial of the problem. I’m pretty sure you can imagine that takes time, right? I don’t have it right now and to be honest I tend to be very selfish when deciding where to invest my free hours, sorry :man_shrugging:t4:

okk no problem.You guys are already doing a great job and i know this takes time.All I wanted is someone who has solved the problem recently could explain it easily and in less time.