Hello. I’ve been trying this problem out for 30 minutes but I still can’t seem to get it to work. When I run it in the Python app, the desired output comes out, but when I submit it here, it gives me a Runtime Error. I would appreciate it a lot if you guys could help me out with this. Thanks.
Here is my code:
a = input()
x = a.split(’ ')
total = int(x[1])
if (int(total)%5 == 0):
total -= int(x[0]) - 0.50
print(str(total-1))
else:
total = total
print(str(total))