ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1106. Two Teams

Two hints may be helpful to this problem
Posted by panhantao 24 Mar 2012 08:18
1.The relationship is always mutual,which means that if 1 has a friend 2,then 2 has a friend 1.
2.1 has a friend 2, and 2 has a friend 3 doesn't mean 1 and 3 are friends,thus be careful to use disjoint set.

Hope they are helpful to you guys :)