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