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

id, title, challengeType, videoUrl, dashedName
id title challengeType videoUrl dashedName
5900f4c01000cf542c50ffd2 问题339Peredur fab Efrawg 5 problem-339-peredur-fab-efrawg

--description--

“他走向一个山谷,河流穿过河谷;山谷的边界是树木繁茂的,河的两边是平坦的草地。河的一边,他看到一群白羊,另一只黑羊。每当一只白羊咩咩叫,其中一只黑羊就会越过白色;当其中一只黑羊咩咩叫的时候其中一只白羊会越过黑羊“en.wikisource.org

最初每群由n只绵羊组成。每只绵羊不论颜色同样可能是下一只咩咩咩的绵羊。在一只绵羊咩咩叫另一只羊的羊群已经越过之后Peredur可能会移走一些白羊以便最大化预期的最终黑羊数量。如果Peredur使用最优策略则让En成为预期的最终黑羊数量。

给出E5= 6.871346舍入到小数点后面的6位。找到E10 000并将您的答案四舍五入到小数点后面的6位。

--hints--

euler339()应返回19823.542204。

assert.strictEqual(euler339(), 19823.542204);

--seed--

--seed-contents--

function euler339() {

  return true;
}

euler339();

--solutions--

// solution required