41 lines
970 B
Markdown
41 lines
970 B
Markdown
---
|
||
id: 5900f3f71000cf542c50ff0a
|
||
title: 问题139:毕达哥拉斯瓷砖
|
||
challengeType: 5
|
||
videoUrl: ''
|
||
dashedName: problem-139-pythagorean-tiles
|
||
---
|
||
|
||
# --description--
|
||
|
||
设(a,b,c)表示具有整数长边的直角三角形的三个边。可以将四个这样的三角形放在一起以形成长度为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
|
||
```
|