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 1912. Titan Ruins: Passing through Walls

I don't understand the 1-st test
Posted by sklyack 20 Oct 2012 16:55
Why the answer is 13?
3 4
+.+-+-+-+
| . .1. |
+-+-+-+.+
| .2. . |
+.+.+.+-+
| . | | |
+.+.+-+-+
The second may help the first to come outside through the top wall (1,2), 4 moves, then the first can help from outside the second to move through the bottom wall (7,2), 2 moves.
Re: I don't understand the 1-st test
Posted by Bogatyr 24 Oct 2012 22:42
The first may not go "up" out the top exit because according to the problem statement they must remain in rooms sharing walls/corners on every move.