* 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>
45 lines
1008 B
Markdown
45 lines
1008 B
Markdown
---
|
||
id: 5900f4461000cf542c50ff59
|
||
title: 问题218:完美的直角三角形
|
||
challengeType: 5
|
||
videoUrl: ''
|
||
dashedName: problem-218-perfect-right-angled-triangles
|
||
---
|
||
|
||
# --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);
|
||
```
|
||
|
||
# --seed--
|
||
|
||
## --seed-contents--
|
||
|
||
```js
|
||
function euler218() {
|
||
|
||
return true;
|
||
}
|
||
|
||
euler218();
|
||
```
|
||
|
||
# --solutions--
|
||
|
||
```js
|
||
// solution required
|
||
```
|