尾随零(Trailing Zeros)
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
题目描述
你的任务是计算阶乘 n!中尾随零的数量。 例如:20!=2432902008176640000,它有 4 个尾随零。
输入格式
唯一的输入行包含一个整数 n。
输出格式
输出 n! 中尾随零的数量。
20
4
30
7
数据范围与提示
Introductory Problems
- Status
- Done
- Rule
- Ledo
- Problem
- 9
- Start at
- 2024-8-13 9:00
- End at
- 2024-8-13 12:18
- Duration
- 3.3 hour(s)
- Host
- Partic.
- 4