Files
freeCodeCamp/curriculum/challenges/japanese/10-coding-interview-prep/project-euler/problem-283-integer-sided-triangles-for-which-the-area--perimeter-ratio-is-integral.md

49 lines
1.2 KiB
Markdown
Raw Permalink Normal View History

---
id: 5900f4881000cf542c50ff9a
title: >-
問題 283: 面積 / 周長の比率が整数である整数辺三角形
challengeType: 5
forumTopicId: 301934
dashedName: >-
problem-283-integer-sided-triangles-for-which-the-area--perimeter-ratio-is-integral
---
# --description--
辺の長さが 6, 8, 10 である三角形について考えます。 周長と面積がともに 24 に等しいことが分かります。
したがって、$\frac{\text{面積}}{\text{周長}}$ の比率は 1 です。
辺 13, 14, 15 の三角形についても考えます。 周長は 42、面積は 84 です。
したがって、この三角形の $\frac{\text{面積}}{\text{周長}}$ の比率は 2 です。
面積 / 周長の比率が 1000 以下の正の整数に等しくなるようなすべての整数三角形について、それらの周長の和を求めなさい。
# --hints--
`integralAreaPerimeterRatio()``28038042525570324` を返す必要があります。
```js
assert.strictEqual(integralAreaPerimeterRatio(), 28038042525570324);
```
# --seed--
## --seed-contents--
```js
function integralAreaPerimeterRatio() {
return true;
}
integralAreaPerimeterRatio();
```
# --solutions--
```js
// solution required
```