freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-350-constraining-the-least-greatest-and-the-greatest-least.md
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
5900f4cb1000cf542c50ffdd 问题350约束最小和最小 5 problem-350-constraining-the-least-greatest-and-the-greatest-least

--description--

大小为n的列表是n个自然数的序列。实例是2,4,62,6,410,6,15,611

列表的最大公约数或gcd是划分列表中所有条目的最大自然数。例子gcd2,6,4= 2gcd10,6,15,6= 1gcd11= 11。

列表的最小公倍数或lcm是列表的每个条目可分割的最小自然数。实例1cm2,6,4= 12,1cm10,6,15,6= 30和1cm11= 11。

设fGLN为大小为N的列表数gcd≥G且lcm≤L。例如

f10,100,1= 91.f10,100,2= 327.f10,100,3= 1135.f10,100,1000mod 1014 = 3286053。

找到f106,1012,1018mod 1014。

--hints--

euler350()应该返回84664213。

assert.strictEqual(euler350(), 84664213);

--seed--

--seed-contents--

function euler350() {

  return true;
}

euler350();

--solutions--

// solution required