CSES Problemset/Introductory Problems
Trailing Zeros
#1618Ask AI
Open a hint-first prompt in a new AI chat. Grok may ask you to confirm before sending.
Open Claude DesktopYour task is to calculate the number of trailing zeros in the factorial .
For example, and it has trailing zeros.
Input
The only input line has an integer .
Output
Print the number of trailing zeros in .
Constraints
Sample Test Cases (1)
Example 1ID: sample-1
Input
20
Expected Output
4
Tools
1
2
3
4
5
6
7
8
9
10
11
12
Draft saved locally
|1 line, 0 charsTest Bench
Input (stdin)
20
Expected Output
4