You are viewing a single comment's thread. Return to all comments →
if(x1>x2 && v1>v2){ return "NO"; } else if(x2>x1 && v2>v1){ return "NO"; } else{ for(int i=0;i<=10000;i++){ x1+=v1; x2+=v2; if(x1==x2){ return "YES"; } } } return "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 →