(x1, v1, x2, v2)
| 10 | # case2: both kangaroos can only meet if (x2-x1) % (v2-v1) is equal to 0 |
| 11 | |
| 12 | def findPos(x1, v1, x2, v2): |
| 13 | if (x1 < x2 and v1 <= v2) or (abs(x2 - x1) % abs(v2 - v1) != 0): |
| 14 | print("NO") |
| 15 | else: |
| 16 | print("YES") |
| 17 | |
| 18 | |
| 19 | # working |