freeCodeCamp/curriculum/challenges/english/10-coding-interview-prep/project-euler/problem-283-integer-sided-triangles-for-which-the-area--perimeter-ratio-is-integral.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.0 KiB

id, title, challengeType, forumTopicId, dashedName
id title challengeType forumTopicId dashedName
5900f4881000cf542c50ff9a Problem 283: Integer sided triangles for which the area * perimeter ratio is integral 5 301934 problem-283-integer-sided-triangles-for-which-the-area--perimeter-ratio-is-integral

--description--

Consider the triangle with sides 6, 8 and 10. It can be seen that the perimeter and the area are both equal to 24.

So the area/perimeter ratio is equal to 1.

Consider also the triangle with sides 13, 14 and 15. The perimeter equals 42 while the area is equal to 84.

So for this triangle the area/perimeter ratio is equal to 2.

Find the sum of the perimeters of all integer sided triangles for which the area/perimeter ratios are equal to positive integers not exceeding 1000.

--hints--

euler283() should return 28038042525570324.

assert.strictEqual(euler283(), 28038042525570324);

--seed--

--seed-contents--

function euler283() {

  return true;
}

euler283();

--solutions--

// solution required