freeCodeCamp/curriculum/challenges/chinese/08-coding-interview-prep/project-euler/problem-397-triangle-on-par...

56 lines
1.1 KiB
Markdown
Raw Normal View History

---
id: 5900f4f91000cf542c51000c
challengeType: 5
title: 'Problem 397: Triangle on parabola'
videoUrl: ''
localeTitle: 问题397抛物线上的三角形
---
## Description
<section id="description">在抛物线y = x2 / k上选择三个点Aaa2 / kBbb2 / k和Ccc2 / k<p>令FKX为整数四元组kabc的数量使得三角形ABC的至少一个角度为45度其中1≤k≤K且-X≤a&lt; b &lt;c≤X。 </p><p>例如F1,10= 41并且F10,100= 12492.找到F106,109</p></section>
## Instructions
<section id="instructions">
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler397()</code>应该返回141630459461893730。
testString: 'assert.strictEqual(euler397(), 141630459461893730, "<code>euler397()</code> should return 141630459461893730.");'
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler397() {
// Good luck!
return true;
}
euler397();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
</section>