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

To judges
Posted by elmariachi1414 (TNU) 21 Jan 2007 01:57
I now one greedy solution, which gets AC.
Please, add this test:
7 1
1 2 2
2 5 1
2 6 1
1 3 1
3 7 2
3 4 2

answer: 2