860 B
860 B
id, title, challengeType, forumTopicId, dashedName
id | title | challengeType | forumTopicId | dashedName |
---|---|---|---|---|
5900f40d1000cf542c50ff1f | Problema 160: algarismos à direita do fatorial | 5 | 301794 | problem-160-factorial-trailing-digits |
--description--
Para qualquer N
, considere f(N)
como os últimos cinco algarismos antes dos zeros à direita em N!
.
Por exemplo:
$$\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}$$
Encontre f(1.000.000.000.000)
--hints--
factorialTrailingDigits()
deve retornar 16576
.
assert.strictEqual(factorialTrailingDigits(), 16576);
--seed--
--seed-contents--
function factorialTrailingDigits() {
return true;
}
factorialTrailingDigits();
--solutions--
// solution required