this is my code. plese tell me what is wrong with this because it is showing the desired output but the codechef says its a wrong answer???
#include <iostream>
using namespace std;
int main()
{
int x;
double a,y,z=0.50;
cin>>x>>y;
cout.setf(ios::fixed);
cout.setf(ios::showpoint);
cout.precision(2);
if(x%5==0)
{
if(x<y)
{
a=((y-z)-x);
cout<<a;
}else
{
cout<<y;
}
}else
{
cout<<y;
}
}