Help me in solving KEPLERSLAW problem i think the output given in the ques is wrong

My issue

My code

/* package codechef; // don't place package name! */

import java.util.*;

class Codechef
{
	public static void main (String[] args) throws java.lang.Exception
	{
		    Scanner scanner = new Scanner(System.in);

        	int t = scanner.nextInt();
		for(int i=0; i<t; i++){
        double T1 = scanner.nextDouble();
        double R1 = scanner.nextDouble();
        double T2 = scanner.nextDouble();
        double R2 = scanner.nextDouble();

        
        double k1 = Math.pow(T1, 2) / Math.pow(R1, 3);
        double k2 = Math.pow(T2, 2) / Math.pow(R2, 3);

        
        if (k1 == k2) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
		}
}
	}


Problem Link: KEPLERSLAW Problem - CodeChef

@kanika0304
Nothing wrong with the question since it demands that the ratio of the t1^2/r1^3 ==t2^2/r2^3;
or in simpler way t1^2r2^3==t2^2r1^3;
is this is true then yes or else no.