Why do I keep on getting "wrong answer"?

#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

Your answer is incorrect. You need to check an extra condition! Try some cases and you’ll see where it fails :slightly_smiling_face:

For which question…??

His last submission shows ATM so i assumed that