Its my first code on CodeChef so…
ATM problem link: HS08TEST Problem - CodeChef
#include <stdio.h>
int main(void) {
int a,c;
float b, d;
scanf(“%d %f”,&a,&b);
if((a%5==0)&&(a+0.5<=b)&&(2000>=a>0)&&(0<b<=2000))
{
c=(b-a);
d=(c-0.5);
printf(“%f”,d);
}
else
{
printf("%f",b);
}
return 0;
}
this is my code and I give all the possible inputs to it and this code is giving me the perfect output which is mentioned in the documentation of the problem but when i submitted the code its showing wrong answer what to do .Please help me to find whats i am missing in this code