| 시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
|---|---|---|---|---|---|
| 1 초 | 128 MB | 297 | 223 | 190 | 75.697% |
The factorial of a positive integer n, written as n!, is the product of the first n positive integers. That is,
n! = 1 × 2 × ... × n
Given a positive integer n, find the number of zeros in the decimal representation of n!. Of course, leading zeros should not be counted. (Note that decimal representation means base ten representation.)
The input contains a single positive integer n < 100.
The output contains a single integer giving the number of zeros in the decimal representation of n!.
20
7
7
2
4
0