freeCodeCamp/curriculum/challenges/chinese/08-coding-interview-prep/project-euler/problem-160-factorial-trail...

972 B
Raw Blame History

id challengeType title videoUrl localeTitle
5900f40d1000cf542c50ff1f 5 Problem 160: Factorial trailing digits 问题160因子尾随数字

Description

对于任何N让fN为N中尾随零之前的最后五位数。例如9 = 362880所以f9= 36288 10 = 3628800所以f10= 36288 20 = 2432902008176640000所以f20= 17664查找f1,000,000,000,000

Instructions

Tests

tests:
  - text: <code>euler160()</code>应返回16576。
    testString: 'assert.strictEqual(euler160(), 16576, "<code>euler160()</code> should return 16576.");'

Challenge Seed

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

euler160();

Solution

// solution required