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 1642. 1D Maze

for All of Programmers
Posted by Adhambek 21 Jun 2013 20:12
Test 3 :
input :
5 2
-1 -2 -3 -4 -5
output :
2 4

Test 4 :
input :
2 0
1 -5
output :
0 0

Test 5 :
input :
15 23
252 33 215 789 1000 123 -125 29 -45 -450 121 -555 -72 120 123
output :
23 113

Test 6 :
0 213
output
Impossible

Test 7 :
input :
8 12
1 2 3 4 5 6 7 8
output :
Impossible

Test 10 :
input :
0 0
output :
0 0

Test 15 :
input :
2 12
1000 -1000
output :
12 2012
Re: for All of Programmers
Posted by Лерник Казарян 30 Nov 2013 21:09
13 есть?
Re: for All of Programmers
Posted by Vitaliy 28 Jan 2014 07:03
Тест 4 точно не такой. По условию сказано, что x!=0.
Я проверял, во всех тестах x!=0.
Тест 10 тоже не такой.

Edited by author 28.01.2014 07:04

Edited by author 28.01.2014 07:05
Re: for All of Programmers
Posted by Vanakals 4 Apr 2014 18:29
правильно подметил Vitaliy.
Re: for All of Programmers
Posted by Vanakals 4 Apr 2014 20:46
Еще возможен такой вариант :
input :
3 2
0 -2 4
output :
Impossible
Re: for All of Programmers
Posted by Evgeny Sibil 1 Nov 2015 18:00
Невозможен, "Все координаты, включая x, не равны нулю"
Re: for All of Programmers
Posted by Majin Boo 16 Jan 2016 23:08
You have an error in tests 4 and 10: "Each coordinate, including x, is non-zero and doesn't exceed 1000 in absolute value."
Re: for All of Programmers
Posted by Timur 11 Nov 2024 19:09
15 isn't it. I have WA15, but on this test my program outputs right answer