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