• + 4 comments
        Below is my code , all the test cases are successful except TestCase 10 which gives RunTime Error. I checked the TestCase 10 (112 9563 8625 244 ) manually and it is getting excuted with correct answer.
    
    int a, b;
            if(v1<v2){
                System.out.println("NO");
            }
            else{
                a = x2 -x1;
                b = v1-v2;
                if(a%b == 0){
                    System.out.println("YES");
                }
                else{
                    System.out.println("NO");
                }
                
            }