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

999 B
Raw Blame History

id, title, challengeType, videoUrl, dashedName
id title challengeType videoUrl dashedName
5900f3d21000cf542c50fee5 问题102三角形遏制 5 problem-102-triangle-containment

--description--

在笛卡尔平面上随机绘制三个不同的点,其中-1000≤xy≤1000从而形成三角形。考虑以下两个三角形A-340,495B-153-910C835-947X-175,41Y-421-714Z574 - 645可以验证三角形ABC包含原点而三角形XYZ不包含原点。使用triangles.txt右键单击并将“Save Link / Target As ...”保存包含一千个“随机”三角形坐标的27K文本文件找到内部包含原点的三角形数。注意文件中的前两个示例表示上面给出的示例中的三角形。

--hints--

euler102()应该返回228。

assert.strictEqual(euler102(), 228);

--seed--

--seed-contents--

function euler102() {

  return true;
}

euler102();

--solutions--

// solution required