Files
freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-416-a-frogs-trip.md
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
5900f50e1000cf542c510020 问题416青蛙的旅行 5 problem-416-a-frogs-trip

--description--

一排n个正方形在最左边的正方形中包含一个青蛙。 通过连续跳跃,青蛙到达最右边的方块,然后回到最左边的方块。 在向外旅行中,他向右跳一个,两个或三个方块,在向家旅行中,他以类似的方式向左跳。 他不能跳出广场。 我已经重复了两次往返旅行。

令Fmn为青蛙可以通过的方式的数目这样最多一个正方形就不会出现。 例如F13= 4F14= 15F15= 46F23= 16和F2100mod 109 = 429619151。

查找F的最后9位数字101012

--hints--

euler416()应该返回898082747。

assert.strictEqual(euler416(), 898082747);

--seed--

--seed-contents--

function euler416() {

  return true;
}

euler416();

--solutions--

// solution required