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
2022-01-23 00:08:20 +09:00

1.2 KiB

id, title, challengeType, forumTopicId, dashedName
id title challengeType forumTopicId dashedName
5900f4881000cf542c50ff9a 問題 283: 面積 / 周長の比率が整数である整数辺三角形 5 301934 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 を返す必要があります。

assert.strictEqual(integralAreaPerimeterRatio(), 28038042525570324);

--seed--

--seed-contents--

function integralAreaPerimeterRatio() {

  return true;
}

integralAreaPerimeterRatio();

--solutions--

// solution required