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 1022. Genealogical Tree

This may sound silly, but I don't get the output
Posted by Angel 26 Jan 2006 23:04
Sample Input

5
0
4 5 1 0
1 0
5 3 0
3 0
Sample Output

2 4 5 3 1


WHERE DIN THE "2" come from????
Re: This may sound silly, but I don't get the output
Posted by Burunduk1 27 Jan 2006 00:32
THE "2" is the oldest martian,
so he should speak first.
What is unclear?