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

test#5
Posted by savage 7 Oct 2006 14:48
The test#5 is:

35
0
1 0
2 0
3 0
4 0
5 0
6 0
7 0
8 0
1 4 5 9 2 3 0
10 0
11 0
12 4 5 6 7 8 9 0
13 0
14 0
15 0
16 0
17 0
18 0
2 3 4 28 5 6 1 7 8 9 10 11 12 13 17 19 0
0
2 0
0
0
15 0
0
0
0
14 13 12 11 0
0
0
33 34 30 0
0
0
0

what's the correct answer for test#5? Thx
Re: test#5
Posted by utis 3 Dec 2006 19:04
i suppose that correct answer is:

35 32 30 34 33 31 29 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 28
Re: test#5
Posted by Rafal 5 Jun 2007 15:38
Or:
20 19 18 17 16 21 22 23 24 25 15 26 27 28 29 14 13 12 11 10 9 8 7 6 5 4 3 2 1 31 32 30 33 34 35
Re: test#5
Posted by Novikov Mihail 12 Sep 2008 17:35
or:
20 19 18 17 16 25 15 29 14 13 12 11 10 9 8 7 6 5 4 3 22 2 1 21 23 24 26 27 28 32 30 31 33 34 35
Re: test#5
Posted by Denis Koshman 13 Sep 2008 04:32
or:
35 32 34 33 30 31 29 27 26 25 24 23 22 21 20 28 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1