Files
freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-218-perfect-right-angled-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

45 lines
1008 B
Markdown
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
id: 5900f4461000cf542c50ff59
title: 问题218完美的直角三角形
challengeType: 5
videoUrl: ''
dashedName: problem-218-perfect-right-angled-triangles
---
# --description--
考虑具有边a = 7b = 24和c = 25的直角三角形。这个三角形的面积是84可以被完美的数字6和28整除。而且它是一个原始的直角三角形因为gcdab= 1gcdbc= 1。 c也是一个完美的正方形。
如果-it是一个原始的直角三角形我们将称为直角三角形完美 - 斜边是一个完美的正方形
如果-it是一个完美的直角三角形我们将称为直角三角形超完美并且 - 区域是完美数字6和28的倍数。
有多少c≤1016的完美直角三角形不是非常完美的
# --hints--
`euler218()`应该返回0。
```js
assert.strictEqual(euler218(), 0);
```
# --seed--
## --seed-contents--
```js
function euler218() {
return true;
}
euler218();
```
# --solutions--
```js
// solution required
```