• + 0 comments

    No bro simply use the slope formula which is basically int temp = (x2-x1)%(v1-v2);

    if(v1>v2) { if(sum==num||temp=0) { cout << "YES " ; } else cout << "No"; } else cout << " No";