Đếm chữ số 0 tận cùng

cách 2
 avatar
tocdovodoi
plain_text
a year ago
130 B
9
Indexable
n = int(input())
for i in range(n):
  a = int(input())
  j = a
  i = 0
  while j > 0:
    i += j//5
    j //= 5
  print(i)
Editor is loading...
Leave a Comment