import java.io.*;
import java.util.*;
class CLBATH
{
public static void main(String args[])
{
Scanner sc=new Scanner(System.in);
int t=sc.nextInt();
while(t-->0)
{
double v1=sc.nextDouble();
double t1=sc.nextDouble();
double v2=sc.nextDouble();
double t2=sc.nextDouble();
double v3=sc.nextDouble();
double t3=sc.nextDouble();
double vreqx=(v3*(t3-t2))/(t1-t2);
double vreqy=v3-vreqx;
if(vreqx>=0&&vreqx<=v1&&vreqy>=0&&vreqy<=v2)
System.out.println("YES");
else
System.out.println("NO");
}
}
}
Problem Code: CLBATH
When I click submit it shows correct answer but when I click run it shows NZEC. What’s the problem?