You are viewing a single comment's thread. Return to all comments →
You can do it with only one if-else statement:
if(v1 > v2 && !((x2-x1)%(v1-v2))) printf("YES"); else printf("NO");
This works for all test cases.
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 →
You can do it with only one if-else statement:
This works for all test cases.