freeCodeCamp/curriculum/challenges/chinese/08-coding-interview-prep/project-euler/problem-276-primitive-trian...

56 lines
988 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: 5900f4801000cf542c50ff93
challengeType: 5
title: 'Problem 276: Primitive Triangles'
videoUrl: ''
localeTitle: 问题276原始三角形
---
## Description
<section id="description">考虑具有整数边ab和c的三角形其中a≤b≤c。如果gcdabc= 1则整数边三角形abc称为基元。存在多少个原始整数边三角形周长不超过10 000 000 </section>
## Instructions
<section id="instructions">
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler276()</code>应该返回5777137137739633000。
testString: 'assert.strictEqual(euler276(), 5777137137739633000, "<code>euler276()</code> should return 5777137137739633000.");'
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler276() {
// Good luck!
return true;
}
euler276();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
</section>