Files
freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-102-triangle-containment.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

39 lines
999 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
id: 5900f3d21000cf542c50fee5
title: 问题102三角形遏制
challengeType: 5
videoUrl: ''
dashedName: 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。
```js
assert.strictEqual(euler102(), 228);
```
# --seed--
## --seed-contents--
```js
function euler102() {
return true;
}
euler102();
```
# --solutions--
```js
// solution required
```