Getting wrong in practice problems while it gives right output for each input

why do i get wrong in practice problems while it gives right output for each input

https://www.codechef.com/viewsolution/39847389
please check it out help to find me where is my mistakehere is my code

#include
#include<bits/stdc++.h>
using namespace std;

int main() {
int draw;
double amount;
double ans;
cin>>draw>>amount;
if( draw%5==0 && (draw+0.50)<=amount )
{
ans=amount-draw-0.50;
cout<<fixed<<setprecision(2)<<ans;
}
else
{
cout<<fixed<<setprecision(2)<<amount;
}
return 0;
}