Files
freeCodeCamp/curriculum/challenges/japanese/10-coding-interview-prep/project-euler/problem-370-geometric-triangles.md
2022-01-23 00:08:20 +09:00

1004 B

id, title, challengeType, forumTopicId, dashedName
id title challengeType forumTopicId dashedName
5900f4de1000cf542c50fff1 問題 370: 幾何三角形 5 302032 problem-370-geometric-triangles

--description--

a ≤ b ≤ c を持つ整数辺三角形で、その辺が幾何数列を形成するもの、すなわち b^2 = a \times c であるものを、幾何三角形と定義します。

このような幾何三角形の例は、長さ a = 144, b = 156, c = 169 の 3 辺を持つ三角形です。

\text{周長} ≤ {10}^6 を満たす幾何三角形は 861\\,805 個あります。

\text{周長} ≤ 2.5 \times {10}^{13} を満たす幾何三角形はいくつありますか。

--hints--

geometricTriangles()41791929448408 を返す必要があります。

assert.strictEqual(geometricTriangles(), 41791929448408);

--seed--

--seed-contents--

function geometricTriangles() {

  return true;
}

geometricTriangles();

--solutions--

// solution required