You are viewing a single comment's thread. Return to all comments →
Or this complete solution:
x1, v1, x2, v2 = list(map(int, input().split())) x, y = sorted([[x1, v1], [x2, v2]], key=lambda el: el[0]) if not x[1] > y[1] or (x[0]-y[0]) % (x[1]-y[1]): print('NO') else: print('YES')
Seems like cookies are disabled on this browser, please enable them to open this website
Number Line Jumps
You are viewing a single comment's thread. Return to all comments →
Or this complete solution: