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

Common Board

problem 1642
Posted by Hid@yet_qafqaz 5 May 2010 01:50
what if in one way we can reach , but on opposite way we can't?
for example,what is output for this test?
input:
0 3
Re: problem 1642
Posted by Sergey Lazarev (MSU Tashkent) 5 May 2010 10:30
Your test is incorrect, such case is impossible.
It is guaranteed that 1D person will encounter either obstacle or exit point sooner or later regardless of the initial direction.
Re: problem 1642
Posted by Hid@yet_qafqaz 5 May 2010 22:12
you mean...such test is not exceed?...or i must output "impossible" when n is equal to
Re: problem 1642
Posted by Hid@yet_qafqaz 5 May 2010 22:12
you mean...such test is not exceed?...or i must output "impossible" when n is equal to zero
Re: problem 1642
Posted by Sergey Lazarev (MSU Tashkent) 5 May 2010 22:52
There are no such tests.
Re: problem 1642
Posted by Hid@yet_qafqaz 5 May 2010 23:45
but what is test 13?i got wrong answer in test 13...