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 2009. Canteen Line

тест 19
Posted by CrispyArty 29 May 2014 12:39
Не могу понять что не так с 19-ым тестом... Даёт "Wrong anser" хотя я проверил каждую мелочь... кто может помочь?
Re: тест 19
Posted by sbidujko 17 Jan 2015 21:05
I had this problem too, because of a logic problem...
Test:
9 2
0
0
0
0
2 0
2 0
6 0
6 0
8 0
10 6
1 2 3 4 5 6
11 3
7 8 9

Ans:
11 right
11 left
12 right
15 left
14 left
12 left
13 right
13 left
14 right