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

WHY?
Posted by akmal4ik 11 Dec 2008 23:04
5
0
4 5 1 0
1 0
5 3 0
3 0

Why output is: 2 4 5 3 1
not: 2 4 3 5 1

and i can't understand the WA in test#4
please explain me
Re: WHY?
Posted by Amon 8 Jul 2011 16:39
chunki 3 5ni farzandi

Edited by author 08.07.2011 16:39
Re: WHY?
Posted by bahasdu 2 Aug 2011 13:31
Because 5 is parent of 3