What is wrong in this code. it keeps saying wrong answer.
#include
#include
using namespace std;
int main() {
int x;
double y;
cin >> x >> y;
if(x > 0 && y > 0 && x <= 1200 && y <= 1200){
if ((x + 0.5) < y && x % 5 == 0)
{
y -= (x + 0.5);
printf("%.2f", y);
}
else{
printf("%.2f", y);
}
}
return 0;
}