HS08TEST Wrong Answer although all Sample Test Cases Passing

My code for this problem (Contest Page | CodeChef) seems right to me and the Testcases I am providing give right answer but after submission it shows wrong answer. Help Required!!!

My Python 3 Code :

X, iBal = input().split()
X = float(X)
iBal = float(iBal)

if (X%5==0) and ((iBal+0.50)>X):
cBal = float(iBal-(X+0.50))
print(’%.2f’%cBal)

else:
print(’%.2f’%iBal)

1 Like