|
|
queues dont equal length like 1 2 3 4 and next person want to insert between 1 and 2, you dont let him to do that If the i’th student will let the j’th student stand behind him in a line, this is !!!NOT!!! means that the j’th student will let the i’th student too. Не могу понять что не так с 19-ым тестом... Даёт "Wrong anser" хотя я проверил каждую мелочь... кто может помочь? 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 The following test helped me a lot: Input: 10 2 0 0 0 0 1 0 3 0 4 0 5 0 6 0 7 0 1 5 1 2 3 4 5 2 5 6 7 8 9 10 Output: 2 right 2 left 5 right 3 left 3 right 6 left 4 left 4 right 6 right 5 left Люди, помогите, на 3 тесте ошибка The example is not clear enough. Does anyone provide more testcases/examples for this problem? any help ? stuck in test case 5. |
|
|