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
5900f3ec1000cf542c50feff 问题128六边形瓷砖差异 5 problem-128-hexagonal-tile-differences

--description--

编号为1的六边形瓷砖由六个六边形瓷砖环围绕从“12点钟”开始并以逆时针方向对瓷砖2至7进行编号。新环以相同的方式添加下一个环编号为8至19,20至37,38至61依此类推。下图显示了前三个环。

通过找到tile n与其六个邻居中的每一个之间的差异我们将PDn定义为那些作为素数的差异的数量。例如在瓦片8周围顺时针工作差异是12,29,11,6,1和13.因此PD8= 3.以相同的方式瓦片17周围的差异是1,17,16,1 11和10因此PD17= 2.可以证明PDn的最大值是3.如果PDn= 3的所有瓦片按升序列出以形成一个序列第10个瓦片将是271.按此顺序找到第2000个瓦片。

--hints--

euler128()应该返回14516824220。

assert.strictEqual(euler128(), 14516824220);

--seed--

--seed-contents--

function euler128() {

  return true;
}

euler128();

--solutions--

// solution required