I don't understand why my code times out. It does the worst case in an instant. Can someone help me? This would be my second python program, so please explain well, I'm unfamiliar with the terminology.
t = int(input())
while ( t ) :
n = int(input())
c = 0
add = int(n/5)
while (add):
c+=add
add = int(add/5)
print(c)
t-=1