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 1463. Happiness to People!

tell me what's wrong in my idea
Posted by Baurzhan 21 Aug 2009 21:11
i decompose graph into connected components (by one dfs)
after that i count diameter of each component(by one special_dfs) and refresh global_variable if need. my programm works at all my tests and
sample test too.