chore(learn): Applied MDX format to Chinese curriculum files (#40462)

This commit is contained in:
Randell Dawson
2020-12-16 00:37:30 -07:00
committed by GitHub
parent 873fce02a2
commit 9ce4a02a41
1665 changed files with 58741 additions and 88042 deletions

View File

@ -1,55 +1,21 @@
---
id: 5900f3cc1000cf542c50fede
title: 问题95友好的链条
challengeType: 5
videoUrl: ''
title: 问题95友好的链条
---
## Description
<section id="description">一个数的适当除数是除数字本身之外的所有除数。例如28的正确除数是1,2,4,7和14.由于这些除数的总和等于28我们称之为完全数。有趣的是220的适当除数之和为284284的适当除数之和为220形成两个数的链。出于这个原因220和284被称为友好对。也许鲜为人知的是较长的链条。例如从12496开始我们形成一个五个数字的链12496→14288→15472→14536→14264→12496→...)由于该链返回其起始点,因此称为友好链。找到最长友好链中最小的成员,没有超过一百万的元素。 </section>
# --description--
## Instructions
<section id="instructions">
</section>
一个数的适当除数是除数字本身之外的所有除数。例如28的正确除数是1,2,4,7和14.由于这些除数的总和等于28我们称之为完全数。有趣的是220的适当除数之和为284284的适当除数之和为220形成两个数的链。出于这个原因220和284被称为友好对。也许鲜为人知的是较长的链条。例如从12496开始我们形成一个五个数字的链12496→14288→15472→14536→14264→12496→...)由于该链返回其起始点,因此称为友好链。找到最长友好链中最小的成员,没有超过一百万的元素。
## Tests
<section id='tests'>
# --hints--
```yml
tests:
- text: <code>euler95()</code>应返回14316。
testString: assert.strictEqual(euler95(), 14316);
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
`euler95()`应返回14316。
```js
function euler95() {
// Good luck!
return true;
}
euler95();
assert.strictEqual(euler95(), 14316);
```
</div>
# --solutions--
</section>
## Solution
<section id='solution'>
```js
// solution required
```
/section>