Perfection | CodeChef

How to solve this problem using DSU ?

2 Likes