Files
freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-283-integer-sided-triangles-for-which-the-area--perimeter-ratio-is-integral.md
Oliver Eyton-Williams dec409a4bd fix: s/localeTitle/title/g
2020-10-06 23:10:08 +05:30

64 lines
1.0 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: 5900f4881000cf542c50ff9a
challengeType: 5
videoUrl: ''
title: 问题283面积*周长比为整数的整数边三角形
---
## Description
<section id="description">
考虑具有边6、8和10的三角形。可以看出周长和面积都等于24。
因此面积/周长比等于1。
还要考虑具有边13、14和15的三角形。周长等于42而面积等于84。
因此,对于该三角形,面积/周长比等于2。
求出面积/周长比等于不超过1000的正整数的所有整数边三角形的周长总和。
</section>
## Instructions
<section id="instructions">
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler283()</code>应该返回28038042525570324。
testString: assert.strictEqual(euler283(), 28038042525570324);
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler283() {
// Good luck!
return true;
}
euler283();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
/section>