Submit solution
Points:
10
Time limit:
1.0s
Memory limit:
16M
Problem type
Allowed languages
ALGOL 68, Assembly, Brain****, C, C++, COBOL, Forth, Fortran, Java, Lua, Text, Turing
ACSL Practice 2009
The factorial of a positive integer
Given a positive integer
Example 1. There are
Example 2. There are
Example 3. There is no zero in the decimal representation of
Input Specification
The input contains a single positive integer
Output Specification
The number of zeros in the decimal representation of
Sample Input 1
Copy
20
Sample Output 1
Copy
7
Sample Input 2
Copy
7
Sample Output 2
Copy
2
Sample Input 3
Copy
4
Sample Output 3
Copy
0
Comments
Since Java's BigInteger class is unintended and defeats the point of this problem, it has been disabled, and all Java submissions were rejudged.