Connected Components Strikes Again

Problem Name:
Connected Components Strikes Again
Site:CodeForces
Links:
Tags:
Problem setters: