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

What is real answer?
Posted by Nazar Revutsky 6 Apr 2003 13:58
5 2
1 2 1
1 3 0
3 4 0
3 5 1


Is '1' (I think) or '2' ???
Re: What is real answer?
Posted by Tor Myklebust 2 Aug 2003 16:45
I believe it's zero.  There are two branches there with weight zero (ie/ they must be preserved), and you are asked to preserve two branches.  Thus, anything with nonzero weight is hosed.
Re: What is real answer?
Posted by tests 19 Sep 2004 08:49
I THINK THE ANSWER IS "1",BECAUSE WE SHOULD PRESERVE THEN BRANCHES 1 2 AND 1 3
Re: What is real answer?
Posted by Roman Nazarkevych 20 Apr 2005 13:15
True answer is '1'