freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-218-perfect-right-a...

28 lines
824 B
Markdown
Raw Blame History

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

---
id: 5900f4461000cf542c50ff59
title: 问题218完美的直角三角形
challengeType: 5
videoUrl: ''
---
# --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);
```
# --solutions--