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 1525. Path

Why example??
Posted by lijian 21 Feb 2007 14:55
why example 1:
1 1 1
uuuur

I think it should be 0!!
Re: Why example??
Posted by Kit 21 Feb 2007 16:03
See problem statment: "If the instruction tells the robot to go outside the room, the robot ignores this instruction."
Re: Why example??
Posted by lijian 21 Feb 2007 18:57
er....
I don't understand what question want to ask!!
please give me a example!!

Edited by author 21.02.2007 19:00
Re: Why example??
Posted by Kit 21 Feb 2007 19:14
Let's start from the point (1, 1, 1). After first move we will be at the same point (because we can't go outside the room at point (1, 2, 1)). And so on... After all we will be in the position (1, 1, 1). That is the only possible final position. So answer is 1.
Re: Why example??
Posted by Todor Tsonkov 21 Feb 2007 20:42
Can you please explain why sample input 3 is 13*12*10 or it will solve the task ?
Re: Why example??
Posted by Kit 21 Feb 2007 20:59
You can simply write program to check all possible starting points, so you will see that true answer is :)