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

1.1 KiB
Raw Blame History

id challengeType title videoUrl localeTitle
5900f41c1000cf542c50ff2f 5 Problem 176: Right-angled triangles that share a cathetus 问题176共用一个cathetus的直角三角形

Description

具有侧面9,12,1512,16,205,12,1312,35,37的四个直角三角形都具有相等的一个短边导管可以证明没有其他整数侧直角三角形存在其中一个导管等于12.找到最小整数可以是恰好47547个不同整数侧直角三角形的cathetus的长度。

Instructions

Tests

tests:
  - text: <code>euler176()</code>应返回96818198400000。
    testString: 'assert.strictEqual(euler176(), 96818198400000, "<code>euler176()</code> should return 96818198400000.");'

Challenge Seed

function euler176() {
  // Good luck!
  return true;
}

euler176();

Solution

// solution required