100! 末尾有多少个 0
Trailing Zeros
题目详情
问: 的十进制表示末尾有多少个 0?
How many trailing zeros are there in ?
解析
尾零由因子 10 贡献,等价于统计 2 与 5 的配对数;2 远多于 5,因此只需数 5 的个数:
所以末尾有 24 个 0。
Original Explanation
There are 24 trailing zeros. The number of trailing zeros equals the number of factors of 5 in (since factors of 2 are abundant). We compute: