* 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>
999 B
999 B
id, title, challengeType, videoUrl, dashedName
id | title | challengeType | videoUrl | dashedName |
---|---|---|---|---|
5900f3d21000cf542c50fee5 | 问题102:三角形遏制 | 5 | problem-102-triangle-containment |
--description--
在笛卡尔平面上随机绘制三个不同的点,其中-1000≤x,y≤1000,从而形成三角形。考虑以下两个三角形:A(-340,495),B(-153,-910),C(835,-947)X(-175,41),Y(-421,-714),Z(574, - 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