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

Adhambek for All of Programmers [7] // Problem 1642. 1D Maze 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 [2] // Problem 1642. 1D Maze 30 Nov 2013 21:09
13 есть?
Vitaliy Re: for All of Programmers [1] // Problem 1642. 1D Maze 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
Vanakals Re: for All of Programmers // Problem 1642. 1D Maze 4 Apr 2014 18:29
правильно подметил Vitaliy.
Vanakals Re: for All of Programmers [1] // Problem 1642. 1D Maze 4 Apr 2014 20:46
Еще возможен такой вариант :
input :
3 2
0 -2 4
output :
Impossible
Evgeny Sibil Re: for All of Programmers // Problem 1642. 1D Maze 1 Nov 2015 18:00
Невозможен, "Все координаты, включая x, не равны нулю"
Majin Boo Re: for All of Programmers // Problem 1642. 1D Maze 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."
Timur Re: for All of Programmers // Problem 1642. 1D Maze 11 Nov 2024 19:09
15 isn't it. I have WA15, but on this test my program outputs right answer