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

Test case 11
Posted by aybek 5 Dec 2013 01:04
Hi, guys!
Can't move throw #11 test. Need help.
I just have build tree, and in every step removing smallest leaf.
At last, I count sum of left leaf's weight and print it.
But, algorithm don't pass at #11 test.
Thanks
Re: Test case 11
Posted by LucAbalo 14 Jan 2015 19:46
7 3
1 2 12
1 3 1
2 4 30
2 5 30
3 6 30
3 7 30
Correct answer is 72, your answer 61