So I don’t know what’s wrong with my code, it says that I am using too much memory but I don’t know how to fix that. Could someone please explain to me what I should do so that I won’t come across this problem again?
Code:
x, y = int(input()), int(input())
if x < y:
if x % 5 == 0:
x += .5
y-= x
print(y)
else:
print(y)
else:
print(y)