用符号 lns="http://www.w3.org/1998/Math/MathML">n!n! 表示 lns="http://www.w3.org/1998/Math/MathML">nn 的阶乘,其具体定义为
n! = 1 * 2 * ... ... * n
给定一个整数 lns="http://www.w3.org/1998/Math/MathML">nn,请统计 lns="http://www.w3.org/1998/Math/MathML">n!n! 的十进制末尾有多少个连续的 lns="http://www.w3.org/1998/Math/MathML">00?
例如 lns="http://www.w3.org/1998/Math/MathML">n=5n=5,则 lns="http://www.w3.org/1998/Math/MathML">n!=120n!=120,末尾有 lns="http://www.w3.org/1998/Math/MathML">11 个 lns="http://www.w3.org/1998/Math/MathML">00,又lns="http://www.w3.org/1998/Math/MathML">12!=47900160012!=479001600,末尾有 lns="http://www.w3.org/1998/Math/MathML">22 个 lns="http://www.w3.org/1998/Math/MathML">00。
单个整数表示 lns="http://www.w3.org/1998/Math/MathML">nn。
5
1