freeCodeCamp/curriculum/challenges/chinese/08-coding-interview-prep/project-euler/problem-91-right-triangles-...

56 lines
1.1 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: 5900f3c71000cf542c50feda
challengeType: 5
title: 'Problem 91: Right triangles with integer coordinates'
videoUrl: ''
localeTitle: 问题91带有整数坐标的直角三角形
---
## Description
<section id="description">点Px1y1和Qx2y2绘制在整数坐标处并连接到原点O0,0以形成ΔOPQ。 <p>正好有十四个三角形包含一个直角当每个坐标位于0和2之间时可以形成直角;即0≤x1y1x2y2≤2。 </p><p>假设0≤x1y1x2y2≤50可以形成多少个直角三角形 </p></section>
## Instructions
<section id="instructions">
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler91()</code>应返回<code>euler91()</code> 。
testString: 'assert.strictEqual(euler91(), 14234, "<code>euler91()</code> should return 14234.");'
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler91() {
// Good luck!
return true;
}
euler91();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
</section>