Oliver Eyton-Williams ee1e8abd87
feat(curriculum): restore seed + solution to Chinese (#40683)
* feat(tools): add seed/solution restore script

* chore(curriculum): remove empty sections' markers

* chore(curriculum): add seed + solution to Chinese

* chore: remove old formatter

* fix: update getChallenges

parse translated challenges separately, without reference to the source

* chore(curriculum): add dashedName to English

* chore(curriculum): add dashedName to Chinese

* refactor: remove unused challenge property 'name'

* fix: relax dashedName requirement

* fix: stray tag

Remove stray `pre` tag from challenge file.

Signed-off-by: nhcarrigan <nhcarrigan@gmail.com>

Co-authored-by: nhcarrigan <nhcarrigan@gmail.com>
2021-01-12 19:31:00 -07:00

1.1 KiB
Raw Blame History

id, title, challengeType, videoUrl, dashedName
id title challengeType videoUrl dashedName
5900f3b61000cf542c50fec9 问题74数字因子链 5 problem-74-digit-factorial-chains

--description--

数字145是众所周知的其数字的阶乘之和等于1451 + 4 + 5 = 1 + 24 + 120 = 145也许知名度较低的是169因为它产生了最长的数字链可以链接到169;事实证明只存在三个这样的循环169→363601→1454→169 871→45361→871 872→45362→872不难证明每个起始编号最终都会陷入循环。例如69→363600→1454→169→363601→145478→45360→871→45361→871540→145→145从69开始产生五个非重复项链但最长起始数低于一百万的非重复链是60个项。起始数低于一百万的链中有多少个包含正好六十个非重复项

--hints--

euler74()应返回402。

assert.strictEqual(euler74(), 402);

--seed--

--seed-contents--

function digitFactorialChains() {

  return true;
}

digitFactorialChains();

--solutions--

// solution required