You are viewing a single comment's thread. Return to all comments →
Hey Python buddy! You don't need to check whether x2>x1, it's already given in the constraints.
This should work. Cheers!
if v1 > v2 and (x2-x1)%(v1-v2) == 0: print "YES else: print "NO"
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 →
Hey Python buddy! You don't need to check whether x2>x1, it's already given in the constraints.
This should work. Cheers!