56 lines
1.2 KiB
Markdown
56 lines
1.2 KiB
Markdown
---
|
||
id: 5900f4f21000cf542c510005
|
||
challengeType: 5
|
||
title: 'Problem 390: Triangles with non rational sides and integral area'
|
||
videoUrl: ''
|
||
localeTitle: 问题390:具有非理性边和积分面积的三角形
|
||
---
|
||
|
||
## Description
|
||
<section id="description">考虑边长为√5,√65和√68的三角形。可以看出,该三角形具有区域9。 <p> S(n)是所有三角形的面积之和,其边长为√(1 + b2),√(1 + c2)和√(b2 + c2)(对于正整数b和c),其积分面积不超过ñ。 </p><p>示例三角形的b = 2且c = 8。 </p><p> S(106)= 18018206。 </p><p>找到S(1010)。 </p></section>
|
||
|
||
## Instructions
|
||
<section id="instructions">
|
||
</section>
|
||
|
||
## Tests
|
||
<section id='tests'>
|
||
|
||
```yml
|
||
tests:
|
||
- text: <code>euler390()</code>应该返回2919133642971。
|
||
testString: 'assert.strictEqual(euler390(), 2919133642971, "<code>euler390()</code> should return 2919133642971.");'
|
||
|
||
```
|
||
|
||
</section>
|
||
|
||
## Challenge Seed
|
||
<section id='challengeSeed'>
|
||
|
||
<div id='js-seed'>
|
||
|
||
```js
|
||
function euler390() {
|
||
// Good luck!
|
||
return true;
|
||
}
|
||
|
||
euler390();
|
||
|
||
```
|
||
|
||
</div>
|
||
|
||
|
||
|
||
</section>
|
||
|
||
## Solution
|
||
<section id='solution'>
|
||
|
||
```js
|
||
// solution required
|
||
```
|
||
</section>
|