freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-75-singular-integer-right-triangles.md
Oliver Eyton-Williams ee1e8abd87
feat(curriculum): restore seed + solution to Chinese (#40683)
* feat(tools): add seed/solution restore script

* chore(curriculum): remove empty sections' markers

* chore(curriculum): add seed + solution to Chinese

* chore: remove old formatter

* fix: update getChallenges

parse translated challenges separately, without reference to the source

* chore(curriculum): add dashedName to English

* chore(curriculum): add dashedName to Chinese

* refactor: remove unused challenge property 'name'

* fix: relax dashedName requirement

* fix: stray tag

Remove stray `pre` tag from challenge file.

Signed-off-by: nhcarrigan <nhcarrigan@gmail.com>

Co-authored-by: nhcarrigan <nhcarrigan@gmail.com>
2021-01-12 19:31:00 -07:00

1.1 KiB
Raw Blame History

id, title, challengeType, videoUrl, dashedName
id title challengeType videoUrl dashedName
5900f3b71000cf542c50feca 问题75奇异整数直角三角形 5 problem-75-singular-integer-right-triangles

--description--

事实证明12厘米是最小的导线长度可以弯曲形成一个完整的直角三角形只有一种方式但还有更多的例子。 12 cm3,4,524 cm6,8,1030 cm5,12,1336 cm9,12,1540 cm8,15,17 48厘米12,16,20相比之下一些长度的线如20厘米不能弯曲形成整数个直角三角形其他长度允许找到多个解决方案;例如使用120厘米可以精确地形成三个不同的整数侧直角三角形。 120厘米30,40,5020,48,5224,45,51假设L是线的长度L≤1,500,000的多少个数值恰好可以是一个整数的右边角三角形成

--hints--

euler75()应返回161667。

assert.strictEqual(euler75(), 161667);

--seed--

--seed-contents--

function singularIntRightTriangles() {

  return true;
}

singularIntRightTriangles();

--solutions--

// solution required