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

id, title, challengeType, videoUrl, dashedName
id title challengeType videoUrl dashedName
5900f5381000cf542c51004b 问题460移动中的蚂蚁 5 problem-460-an-ant-on-the-move

--description--

在欧几里得平面上蚂蚁从点A0,1行进到点Bd1得到整数d。

在每个步骤中x0y0处的蚂蚁选择满足x1≥0且y1≥1的格点x1y1之一并以恒定速度v直接到x1y1。 v取决于y0和y1如下如果y0 = y1则v的值等于y0。如果y0≠y1则v的值等于y1-y0/lny1-lny0

左图是d = 4的可能路径之一。首先蚂蚁以速度3 - 1/ln3 - ln1从A0,1到达P11,3 ≈1.8205。然后所需的时间是sqrt5/1.8205≈1.2283。从P11,3到P23,3蚂蚁以速度3行进因此所需时间为2 /3≈0.6667。从P23,3到B4,1蚂蚁以速度1 - 3/ln1 - ln3≈1.8205所以需要的时间是sqrt5/ 1.8205 ...“抓鸟”英语词典1.2283。因此总的所需时间是1.2283 + 0.6667 + 1.2283 = 3.1233。

正确的形象是另一条道路。总的所需时间计算为0.98026 + 1 + 0.98026 = 2.96052。可以证明这是d = 4的最快路径。

如果蚂蚁选择最快的路径则让Fd成为所需的总时间。例如F4≈2.960516287。我们可以验证F10≈4.6668787834和F100≈9.217221972。

找到F10000。将您的答案四舍五入到小数点后九位。

--hints--

euler460()应该返回18.420738199。

assert.strictEqual(euler460(), 18.420738199);

--seed--

--seed-contents--

function euler460() {

  return true;
}

euler460();

--solutions--

// solution required