* 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>
1.2 KiB
1.2 KiB
id, title, challengeType, videoUrl, dashedName
id | title | challengeType | videoUrl | dashedName |
---|---|---|---|---|
5900f4c01000cf542c50ffd2 | 问题339:Peredur fab Efrawg | 5 | problem-339-peredur-fab-efrawg |
--description--
“他走向一个山谷,河流穿过河谷;山谷的边界是树木繁茂的,河的两边是平坦的草地。河的一边,他看到一群白羊,另一只黑羊。每当一只白羊咩咩叫,其中一只黑羊就会越过白色;当其中一只黑羊咩咩叫的时候,其中一只白羊会越过黑羊“en.wikisource.org
最初每群由n只绵羊组成。每只绵羊(不论颜色)同样可能是下一只咩咩咩的绵羊。在一只绵羊咩咩叫,另一只羊的羊群已经越过之后,Peredur可能会移走一些白羊,以便最大化预期的最终黑羊数量。如果Peredur使用最优策略,则让E(n)成为预期的最终黑羊数量。
给出E(5)= 6.871346舍入到小数点后面的6位。找到E(10 000)并将您的答案四舍五入到小数点后面的6位。
--hints--
euler339()
应返回19823.542204。
assert.strictEqual(euler339(), 19823.542204);
--seed--
--seed-contents--
function euler339() {
return true;
}
euler339();
--solutions--
// solution required