Homies and Not Homies

Problem Name:
Homies and Not Homies
Site:CodeForces
Links:
Tags: