|
|
Can you please give me a test for my code? For WA#2 you have to check if Alice/Bob are waiting exact amount di. I tried case when di=0, and noticed my code waits 1 time, instead of waiting for 0. << When they “meet” (i.e., at some moment they are in the same point as in the PREVIOUS WERE NOT), they joyfully exclaim (“Oh, Bob!” or “Oh, Alice!” respectively).>> Let this test: L = 10 T = 10 va = 10 vb = 10 n = 1 type = 1 t[1] = 0, d[1] = 10. Alice and Bob "meet" 10 times at the SAME point, so answer should be 1. But, AC solution gives 10. >> at some moment they are in the same point >> at some moment there are different moments for their meeting Что за 4 тест??? не могу понять, где что неправильно... What answer should be for given test? 1 1 1 1 0 |
|
|