Files
freeCodeCamp/curriculum/challenges/chinese/08-coding-interview-prep/project-euler/problem-385-ellipses-inside-triangles.chinese.md

56 lines
1.6 KiB
Markdown
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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: 5900f4ee1000cf542c510000
challengeType: 5
title: 'Problem 385: Ellipses inside triangles'
videoUrl: ''
localeTitle: 问题385三角形内的椭圆
---
## Description
<section id="description">对于平面中的任何三角形T可以显示存在唯一的椭圆其中最大区域完全在T内。 <p>对于给定的n考虑三角形T使得 </p><ul><li> T的顶点具有绝对值≤n的整数坐标</li><li> T内最大面积椭圆的焦点是√13,0-√13,0。设An为所有这些三角形的面积之和。 </li></ul><p>例如如果n = 8则存在两个这样的三角形。它们的顶点是-4-3 - 4,38,04,34-3 - 8,0每个三角形的面积因此A8= 36 + 36 = 72。 </p><p>可以证实A10= 252A100= 34632和A1000= 3529008。 </p><p>找A1 000 000 000</p><p> 1椭圆的焦点多个焦点是两个点A和B使得对于椭圆边界上的每个点PAP + PB是恒定的。 </p></section>
## Instructions
<section id="instructions">
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler385()</code>应该返回3776957309612154000。
testString: 'assert.strictEqual(euler385(), 3776957309612154000, "<code>euler385()</code> should return 3776957309612154000.");'
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler385() {
// Good luck!
return true;
}
euler385();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
</section>