HS08TEST test (shit)

Extremely retarded problem, designed to lower a coder’s self esteem

// Online C++ compiler to run C++ program online
#include
#include
using namespace std;

int main() {
// Write C++ code here
int x;
float y;
cin>>x>>y;

if(x%5==0 && y>x+0.50)
{
     y=y-(x+0.50);
}

cout<<fixed<<setprecision(2)<<y;
return 0;
}

shows as wrong answer even after all the cases are correct.
find the error i’ll send 5$

Here
y - x can be equal to 0.50

Example
Input
15 15.50
Output
0.00

Your code is not checking for this

1 Like

https://www.codechef.com/viewsolution/45797189

here send me 5$

well, dont feel bad about not solving a particular problem. Every programmer faces difficulties at some point of time. You’ll get used to it.

did you receive? :joy:

nah i don’t care. I earn a lot in freelancing. Here Just to have fun destroying cheaters. PS