From d5c06c689e3328546cd4c486b30a7909651501ed Mon Sep 17 00:00:00 2001 From: Jack Sangdahl Date: Thu, 13 Feb 2025 15:18:28 -0700 Subject: 1618. trailing zeors --- introductory_problems/readme.md | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'introductory_problems/readme.md') diff --git a/introductory_problems/readme.md b/introductory_problems/readme.md index 0550440..4490312 100644 --- a/introductory_problems/readme.md +++ b/introductory_problems/readme.md @@ -62,3 +62,10 @@ Your task is to calculate the number of bit strings of length `n`. For example, **Input**: The only input line has an integer `n`. (Example: 3) **Output**: Print the result modulo 10E9 + 7. (Example: 8) + +### Trailing Zeros +Your task is to calculate the number of trailing zeros in the factorial `n!`. For example, `20! = 20!=2432902008176640000` and it has 4 trailing zeros. + +**Input**: The only input line has an integer `n`. (Example: 20) + +**Output**: Print the number of in `n!`. (Example: 4) -- cgit v1.2.3