freeCodeCamp/curriculum/challenges/chinese/08-coding-interview-prep/project-euler/problem-378-triangle-triple...

56 lines
1.2 KiB
Markdown
Raw Normal View History

---
id: 5900f4e61000cf542c50fff9
challengeType: 5
title: 'Problem 378: Triangle Triples'
videoUrl: ''
localeTitle: 问题378三角形三元组
---
## Description
<section id="description">设Tn为第n个三角形数因此Tn= <p> nn + 12 </p><p></p><p>设dTn为Tn的除数。例如T7= 28且dT7= 6。 </p><p>令Trn为三元组数ijk使得1≤i&lt;j &lt;k≤n且dTi&gt; dTj&gt; dTk。 Tr20= 14Tr100= 5772Tr1000= 11174776。 </p><p>找Tr60 000 000。给出答案的最后18位数字。 </p></section>
## Instructions
<section id="instructions">
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler378()</code>应该返回147534623725724700。
testString: 'assert.strictEqual(euler378(), 147534623725724700, "<code>euler378()</code> should return 147534623725724700.");'
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler378() {
// Good luck!
return true;
}
euler378();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
</section>