Files
2022-04-11 19:34:39 +05:30

46 lines
961 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
id: 5900f40d1000cf542c50ff1f
title: 'Задача 160: Факторіальні кінцеві цифри'
challengeType: 5
forumTopicId: 301794
dashedName: problem-160-factorial-trailing-digits
---
# --description--
Для будь-якого $N$ нехай $f(Н)$ буде останніми п'ятьма цифрами перед кінцевими нулями в $N!$.
Наприклад,
$$\begin{align} & 9! = 362880 \\; \text{so} \\; f(9) = 36288 \\\\
& 10! = 3628800 \\; \text{so} \\; f(10) = 36288 \\\\ & 20! = 2432902008176640000 \\; \text{so} \\; f(20) = 17664 \end{align}$$
Знайдіть $f(1,000,000,000,000)$
# --hints--
`factorialTrailingDigits()` має повернути `16576`.
```js
assert.strictEqual(factorialTrailingDigits(), 16576);
```
# --seed--
## --seed-contents--
```js
function factorialTrailingDigits() {
return true;
}
factorialTrailingDigits();
```
# --solutions--
```js
// solution required
```