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 1752. Tree 2

No subject
Posted by Vedernikoff Sergey (HSE: АОП) 28 Jun 2010 01:14
No subject

Edited by author 28.06.2010 22:13
Re: Is there some flaw in my logic?
Posted by Sergey Lazarev (MSU Tashkent) 28 Jun 2010 21:49
I think your algo will fail on this test:

11 2

1 2
2 3
2 6
3 4
6 5
1 7
7 8
7 9
8 10
9 11

4 1
5 1

Answer:
3
6
Re: Is there some flaw in my logic?
Posted by Vedernikoff Sergey (HSE: АОП) 28 Jun 2010 22:15
Thank you, man! Your invaluable test helped me to understand where I'm wrong. The algo itself is correct, but my realization has silly flaw...