#include<stdio.h>
int main(void){
int x;
float y;
scanf("%d %f",&x,&y);
if(x<=2000 && y<=2000 && x>0 && y>=0)
{
if(x>y)
printf("%0.2f",y);
else if(x%5==0)
printf("%0.2f",(y-x-0.5));
else
printf("%0.2f",y);
}
return 0;
}
This is my code and I have tested it on codeblocks IDE and it is working fine but codechef is not accepting my code