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 1018. Binary Apple Tree

Please, solve my test here...
Posted by cold_Iron 18 Apr 2005 02:17
7 1
1 2 1
1 3 1
2 6 0
2 7 0
3 4 0
3 5 0
What should be the answer 1 or 2?
My AC prg outputs 1 (-)
Posted by Victor Barinov (TNU) 18 Apr 2005 02:36
Re: My AC prg outputs 1 (-)
Posted by cold_Iron 18 Apr 2005 20:10
Thanks!
So I should cut off zero-trees or only in case of when Q<number of zero-trees?