Files
freeCodeCamp/curriculum/challenges/russian/08-coding-interview-prep/project-euler/problem-160-factorial-trailing-digits.russian.md

1.0 KiB

id, challengeType, title, forumTopicId, localeTitle
id challengeType title forumTopicId localeTitle
5900f40d1000cf542c50ff1f 5 Problem 160: Factorial trailing digits 301794 Задача 160: Факториальные конечные цифры

Description

Для любого N пусть f (N) - последние пять цифр перед конечными нулями в N !. Например, 9! = 362880, так что f (9) = 36288 10! = 3628800, так что f (10) = 36288 20! = 2432902008176640000, так f (20) = 17664 Найти f (1,000,000,000,000)

Instructions

Tests

tests:
  - text: <code>euler160()</code> should return 16576.
    testString: assert.strictEqual(euler160(), 16576);

Challenge Seed

function euler160() {
  // Good luck!
  return true;
}

euler160();

Solution

// solution required