freeCodeCamp/curriculum/challenges/chinese/08-coding-interview-prep/project-euler/problem-75-singular-integer...

56 lines
1.4 KiB
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: 5900f3b71000cf542c50feca
challengeType: 5
title: 'Problem 75: Singular integer right triangles'
videoUrl: ''
localeTitle: 问题75奇异整数直角三角形
---
## Description
<section id="description">事实证明12厘米是最小的导线长度可以弯曲形成一个完整的直角三角形只有一种方式但还有更多的例子。 12 cm3,4,524 cm6,8,1030 cm5,12,1336 cm9,12,1540 cm8,15,17 48厘米12,16,20相比之下一些长度的线如20厘米不能弯曲形成整数个直角三角形其他长度允许找到多个解决方案;例如使用120厘米可以精确地形成三个不同的整数侧直角三角形。 120厘米30,40,5020,48,5224,45,51假设L是线的长度L≤1,500,000的多少个数值恰好可以是一个整数的右边角三角形成 </section>
## Instructions
<section id="instructions">
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler75()</code>应返回161667。
testString: 'assert.strictEqual(euler75(), 161667, "<code>euler75()</code> should return 161667.");'
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler75() {
// Good luck!
return true;
}
euler75();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
</section>