freeCodeCamp/curriculum/challenges/japanese/10-coding-interview-prep/project-euler/problem-176-right-angled-tr...

1.0 KiB

id title challengeType forumTopicId dashedName
5900f41c1000cf542c50ff2f 問題 176: 隣辺を共有する直角三角形 5 301811 problem-176-right-angled-triangles-that-share-a-cathetus

--description--

辺の長さが (9,12,15), (12,16,20), (5,12,13), (12,35,37) の 4 つの直角三角形はすべて、隣辺 (最長でない辺) のいずれかが 12 です。 辺の長さが整数、かつ隣辺のいずれかが 12 である直角三角形がこの 4 つのみであることが分かっています。

整数辺を持つちょうど 47547 個の異なる直角三角形の隣辺の長さとなり得る、最小の整数を求めなさい。

--hints--

trianglesSharingCathetus()96818198400000 を返す必要があります。

assert.strictEqual(trianglesSharingCathetus(), 96818198400000);

--seed--

--seed-contents--

function trianglesSharingCathetus() {

  return true;
}

trianglesSharingCathetus();

--solutions--

// solution required