whenever i am submitting the code they are writing it wrong answer but the same code ran in codeblocks without any problem
question link https://www.codechef.com/problems/SEBIHWY
my code
#include<stdio.h>
int main()
{
int i ;
scanf("%d",&i);
while(i--)
{
float S,SG,FG,D,T;
float O,R;
scanf("%f%f%f%f%f",&S,&SG,&FG,&D,&T);
O=(180*D)/T;
R=S+O;
if(abs(SG-R)<abs(FG-R))
{
printf("SEBI \n");
}
else if(abs(SG-R)>abs(FG-R))
{
printf("FATHER \n");
}
else
{
printf("DRAW \n");
}
}
return 0;
}