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

961 B
Raw Permalink Blame History

id, title, challengeType, forumTopicId, dashedName
id title challengeType forumTopicId dashedName
5900f40d1000cf542c50ff1f Задача 160: Факторіальні кінцеві цифри 5 301794 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.

assert.strictEqual(factorialTrailingDigits(), 16576);

--seed--

--seed-contents--

function factorialTrailingDigits() {

  return true;
}

factorialTrailingDigits();

--solutions--

// solution required