Files
freeCodeCamp/curriculum/challenges/chinese/08-coding-interview-prep/project-euler/problem-102-triangle-containment.chinese.md

56 lines
1.3 KiB
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
challengeType: 5
title: 'Problem 102: Triangle containment'
videoUrl: ''
localeTitle: 问题102三角形遏制
---
## Description
<section id="description">在笛卡尔平面上随机绘制三个不同的点,其中-1000≤xy≤1000从而形成三角形。考虑以下两个三角形A-340,495B-153-910C835-947X-175,41Y-421-714Z574 - 645可以验证三角形ABC包含原点而三角形XYZ不包含原点。使用triangles.txt右键单击并将“Save Link / Target As ...”保存包含一千个“随机”三角形坐标的27K文本文件找到内部包含原点的三角形数。注意文件中的前两个示例表示上面给出的示例中的三角形。 </section>
## Instructions
<section id="instructions">
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler102()</code>应该返回228。
testString: 'assert.strictEqual(euler102(), 228, "<code>euler102()</code> should return 228.");'
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler102() {
// Good luck!
return true;
}
euler102();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
</section>