I wrote the code for the ATM problem of the beginners’ section but got an NZEC error.
# cook your dish here
x = int (input ())
y = int (input ())
if ((x % 5 != 0)&(x+0.5>y)):
print (y)#‘%.2f’%
else:
if(x+y<y):
print (x - y - 0.5)#‘%.2f’%
else:
print(y)
Question:- HS08TEST Problem - CodeChef
RuntimeError:- NZEC
Error:- Traceback (most recent call last):
File “./prog.py”, line 2, in
EOFError: EOF when reading a line