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

id, title, challengeType, videoUrl, dashedName
id title challengeType videoUrl dashedName
5900f4971000cf542c50ffaa 问题299三个相似的三角形 5 problem-299-three-similar-triangles

--description--

选择了四个具有整数坐标的点Aa0Bb0C0c和D0d

其中0

仅当a = c时容易证明三个三角形可以相似。

因此给定a = c我们正在寻找三元组abd使得AC上至少存在一个点P具有整数坐标从而使三个三角形ABPCDP和BDP都相似。

例如如果abd234则可以容易地验证点P11满足上述条件。 请注意三点式2,3,42,4,3被认为是截然不同的尽管点P1,1对于两者而言是共同的。

如果b + d <100则存在92个不同的三元组abd从而存在点P. 如果b + d <100000则存在320471个不同的三元组abd从而存在点P. 如果b + d <100000000那么有几个不同的三元组abd使得点P存在

--hints--

euler299()应该返回549936643。

assert.strictEqual(euler299(), 549936643);

--seed--

--seed-contents--

function euler299() {

  return true;
}

euler299();

--solutions--

// solution required