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 1054. Tower of Hanoi

why wa on test 3? is there any '-1' exist??
Posted by somebody 7 Jun 2004 07:53
Yes,there is.
Posted by Y.Y.M. 8 Jun 2004 13:29
For example,if the text is:

3
1 2 3

you should output -1.
Re: Yes,there is.
Posted by rongyan 4 Sep 2006 18:23
Why?
Re: Yes,there is.
Posted by AlexF 5 Sep 2006 09:40
Because there wasn't such sequence in the table!
Re: Yes,there is.
Posted by Bobur 26 Jan 2008 20:12
i think it is 7 times.
1-> 3, 1   (III)
2-> 2,     (I)
1-> 2, 1   (I)
3-> 3      (II)
1-> 1      (III)
2-> 3, 2   (II)
1-> 3, 2, 1(II).