Files
2023-03-02 20:59:51 +07:00

20 lines
249 B
C++

#include <iostream>
using namespace std;
int main()
{
int x;
float y;
cin >> x >> y;
if (x%5 == 0 && (y - x) > 0.5)
{
cout << y - (x + 0.5) << endl;
}
else
{
cout << y << endl;
}
return 0;
}