freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-139-pythagorean-til...

41 lines
970 B
Markdown
Raw Blame History

This file contains ambiguous Unicode 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: 5900f3f71000cf542c50ff0a
title: 问题139毕达哥拉斯瓷砖
challengeType: 5
videoUrl: ''
dashedName: problem-139-pythagorean-tiles
---
# --description--
abc表示具有整数长边的直角三角形的三个边。可以将四个这样的三角形放在一起以形成长度为c的正方形。例如3,4,5三角形可以放在一起形成一个5乘5的正方形中间有一个1个洞可以看到5乘5的正方形可以用二十五个平铺1个方格。
但是如果使用5,12,13三角形则孔将按7乘7测量并且这些不能用于平铺13乘13平方。鉴于直角三角形的周长小于一亿有多少毕达哥拉斯三角形允许这样的平铺
# --hints--
`euler139()`应该返回10057761。
```js
assert.strictEqual(euler139(), 10057761);
```
# --seed--
## --seed-contents--
```js
function euler139() {
return true;
}
euler139();
```
# --solutions--
```js
// solution required
```