Processing math: 100%
Register
|
Login
HOME
PROBLEMSET
ROADMAP
COMPETITION
TOPIC
RANKING
GUIDE
MASHUP
ABOUT
CONTACT
Problem
Submit
Results
Trailing zeros - ReimuOJ: Reimu Online Judge
Trailing zeros
Time limit: 1000 ms
Memory limit: 256 MB
Count the number of trailing zeros in
n
!
. Note:
n
!
=
1
×
2
×
.
.
.
×
n
. ### Input - The first line contains an integer
n
. ### Output - A single integer is the number of traling zeros in
n
!
. ### Constraints -
1
≤
n
≤
1000
. ### Example Input:
10
Output:
2
Loop
Loop
Even numbers
Factorial
Star Triangle
Folding paper
Fraction
Divisors
Complex Exponentiation
Prime number
Digit Sum
Fibonacci
Read number till eternity
Extremal
Reverse
Mushroom exchanging
Trailing zeros
Decimal to binary
Binary to decimal
Division
Solution
Topic
Basic
Rating
800
Solution (0)
Solution