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

One little hint
Posted by Olzhas aka Whale2dy 24 May 2007 17:09
Hey, everybody. I've just solved this problem and I want to share with you the main thing that have helped me.
Ok, so the main idea is the fact that that "Every tree is bipartite"(http://en.wikipedia.org/wiki/Bipartite_graph) and it is very easy to divide a tree into two parts. Hope it will help somebody.
GL.