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.0 KiB
Raw Blame History

id, title, challengeType, videoUrl, dashedName
id title challengeType videoUrl dashedName
5900f3e01000cf542c50fef3 问题116红色绿色或蓝色瓷砖 5 problem-116-red-green-or-blue-tiles

--description--

一排五个黑色正方形瓷砖是用彩色椭圆形瓷砖代替的其中红色长度为2绿色长度为3或蓝色长度为4。如果选择红色瓷砖则可以通过七种方式完成此操作。

如果选择绿色瓷砖,有三种方法。

如果选择蓝色瓷砖,有两种方法。

假设颜色不能混合则有7 + 3 + 2 = 12种方式替换长度为五个单位的行中的黑色瓷砖。如果不能混合颜色并且必须使用至少一个彩色瓷砖那么连续测量五十个单位的黑色瓷砖有多少种不同的方式可以替换注意这与问题117有关。

--hints--

euler116()应该返回20492570929。

assert.strictEqual(euler116(), 20492570929);

--seed--

--seed-contents--

function euler116() {

  return true;
}

euler116();

--solutions--

// solution required