Files
freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-138-special-isosceles-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

853 B
Raw Blame History

id, title, challengeType, videoUrl, dashedName
id title challengeType videoUrl dashedName
5900f3f61000cf542c50ff09 问题138特殊的等腰三角形 5 problem-138-special-isosceles-triangles

--description--

考虑具有基本长度b = 16和腿L = 17的等腰三角形。

通过使用毕达哥拉斯定理可以看出三角形的高度h =√172-82= 15比基本长度小1。当b = 272且L = 305时我们得到h = 273这比基本长度多一个这是第二个最小的等腰三角形具有h = b±1的性质。找到12个最小等腰的ΣL h = b±1且bL为正整数的三角形。

--hints--

euler138()应该返回1118049290473932。

assert.strictEqual(euler138(), 1118049290473932);

--seed--

--seed-contents--

function euler138() {

  return true;
}

euler138();

--solutions--

// solution required