fork download
  1. count=0
  2. t=input()
  3. def z(x):
  4. answer=0
  5. while(x>=5):
  6. x=x/5
  7. answer=answer+x
  8. return answer
  9. while(count<t):
  10. print z(input())
  11. count+=1
Success #stdin #stdout 0.08s 8840KB
stdin
1
5
stdout
1