python-leetcode-阶乘后的零
172. 阶乘后的零 - 力扣(LeetCode)
class Solution:def trailingZeroes(self, n: int) -> int:count = 0while n >= 5:n //= 5count += nreturn count
172. 阶乘后的零 - 力扣(LeetCode)
class Solution:def trailingZeroes(self, n: int) -> int:count = 0while n >= 5:n //= 5count += nreturn count