My issue
My code
// We have populated the solutions for the 10 easiest problems for your support.
// Click on the SUBMIT button to make a submission to this problem.
#include <bits/stdc++.h>
#include <cmath>
#include<iomanip>
using namespace std;
int main()
{
int a;
float b;
cin>>a;
cin>>b;
if(((b-(a+0.5)>=0) && (a%5==0))){
cout<<setprecision(2)<<(b-(a+0.5))<<endl;
}
else{
cout<<setprecision(2)<<b<<endl;
}
return 0;
}
Problem Link: HS08TEST Problem - CodeChef