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 1441. From the History of Gringotts Bank

To admin
Posted by ZGJY 5 Jan 2013 15:07
I wrote a program about this problem but wa4....
I found an AC code but it can not pass this data,and I can pass.
8 12
1 2
2 3
3 4
4 1
1 5
2 6
3 7
4 8
5 6
6 7
7 8
8 5

here is my answer:
4
5 6 7 8 5 1 2 3 4 1
6 2
7 3
8 4

here is ac code answer:
7
1 2 3 1 4 3
4 5 1 6 5
6 7 1 8 7
8 9 1 10 9
10 11 1 12 11
12 13 1 14 13
14 2
I think he is wrong.

Please add this kind of data.
And I wanted to know the test for test 4.
Could you please tell me?
At last,sorry for my poor English.
No subject
Posted by ZGJY 6 Jan 2013 11:24
I got an AC,if you wa4,you can try this test
20 25
5 14
11 17
19 7
1 12
3 1
10 8
2 6
17 4
11 10
2 4
6 9
3 16
7 11
20 4
6 10
9 12
16 9
9 15
17 5
11 13
15 6
13 9
17 9
19 8
18 17
Re: To admin
Posted by Sandro (USU) 6 Jan 2013 13:44
Your test was added
the answer is here
Posted by SYFT 15 Mar 2013 15:17
the right answer is three , why the answer which you tell me is five ?
you played a trick on ME !!
3
10 6 15 9 17
14 5 17 18
20 4 2 6 9 16 3 1 12 9 13 11 7 19 8 10 11 17 4