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

1013 B
Raw Blame History

id, title, challengeType, videoUrl, dashedName
id title challengeType videoUrl dashedName
5900f4071000cf542c50ff19 问题154探索帕斯卡的金字塔 5 problem-154-exploring-pascals-pyramid

--description--

使用球形球构造三角形金字塔,使得每个球恰好位于下一个较低水平的三个球上。

然后我们计算从顶点到每个位置的路径数量路径从顶点开始并向下前进到当前位置正下方的三个球体中的任何一个。因此到达某个位置的路径数是紧接在其上方的数字的总和取决于位置在其上方最多有三个数字。结果是Pascal的金字塔每个级别n的数字是三项式展开x + y + zn的系数。 x + y + z200000的扩展中有多少个系数是1012的倍数

--hints--

euler154()应该返回479742450。

assert.strictEqual(euler154(), 479742450);

--seed--

--seed-contents--

function euler154() {

  return true;
}

euler154();

--solutions--

// solution required