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,62 +1,33 @@
---
id: 5900f37d1000cf542c50fe8f
title: 问题16电源数字总和
challengeType: 5
videoUrl: ''
title: 问题16电源数字总和
---
## Description
<section id="description">
2 <sup> 15 </ sup> = 32768其位数之和为3 + 2 + 7 + 6 + 8 = 26。
2 <sup> <code>指数</ code> </ sup>的数字总和是多少?
</section>
# --description--
## Instructions
<section id="instructions">
</section>
2 <sup>15<!-- sup-->= 32768其位数之和为3 + 2 + 7 + 6 + 8 = 26。 2 <sup><code>指数<!-- code--><!-- sup-->的数字总和是多少?</code></sup></sup>
## Tests
<section id='tests'>
# --hints--
```yml
tests:
- text: <code>powerDigitSum(15)</code>应该返回26。
testString: assert.strictEqual(powerDigitSum(15), 26);
- text: <code>powerDigitSum(128)</code>应该返回166。
testString: assert.strictEqual(powerDigitSum(128), 166);
- text: <code>powerDigitSum(1000)</code>应返回1366。
testString: assert.strictEqual(powerDigitSum(1000), 1366);
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
`powerDigitSum(15)`应该返回26。
```js
function powerDigitSum(exponent) {
// Good luck!
return true;
}
powerDigitSum(15);
assert.strictEqual(powerDigitSum(15), 26);
```
</div>
</section>
## Solution
<section id='solution'>
`powerDigitSum(128)`应该返回166。
```js
// solution required
assert.strictEqual(powerDigitSum(128), 166);
```
/section>
`powerDigitSum(1000)`应返回1366。
```js
assert.strictEqual(powerDigitSum(1000), 1366);
```
# --solutions--