For the ATM PROBLEM, this was my code. It worked in other IDEs but I am getting a NZEC error here. I’m so confused.
https://www.codechef.com/viewsolution/42250550
Please help!!
For the ATM PROBLEM, this was my code. It worked in other IDEs but I am getting a NZEC error here. I’m so confused.
https://www.codechef.com/viewsolution/42250550
Please help!!
You need to just take input of two integers. Use a map and take the inputs in floats.
Here is your AC code
x,y = map(float,input().split())
if x%5==0 and x+0.5<=y:
s=y-x-0.5
print(s)
else:
print(y)