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,67 +1,47 @@
---
id: 5900f38b1000cf542c50fe9e
title: 问题31硬币总和
challengeType: 5
videoUrl: ''
title: 问题31硬币总和
---
## Description
<section id="description">
# --description--
在英格兰货币由英镑英镑和便士p组成并且有八种普通硬币流通
1p2p5p10p20p50p£1100p和£2200p
可以通过以下方式赚取£2
1×£1 + 1×50p + 2×20p + 1×5p + 1×2p + 3×1p
使用任意数量的硬币可以制成多少种便士?
</section>
## Instructions
<section id="instructions">
</section>
# --hints--
## Tests
<section id='tests'>
```yml
tests:
- text: <code>digitnPowers(50)</code>应该返回451。
testString: assert(coinSums(50) == 451);
- text: <code>digitnPowers(100)</code>应该返回4563。
testString: assert(coinSums(100) == 4563);
- text: <code>digitnPowers(150)</code>应该返回21873。
testString: assert(coinSums(150) == 21873);
- text: <code>digitnPowers(200)</code>应该返回73682。
testString: assert(coinSums(200) == 73682);
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
`digitnPowers(50)`应该返回451。
```js
function coinSums(n) {
// Good luck!
return n;
}
coinSums(200);
assert(coinSums(50) == 451);
```
</div>
</section>
## Solution
<section id='solution'>
`digitnPowers(100)`应该返回4563。
```js
// solution required
assert(coinSums(100) == 4563);
```
/section>
`digitnPowers(150)`应该返回21873。
```js
assert(coinSums(150) == 21873);
```
`digitnPowers(200)`应该返回73682。
```js
assert(coinSums(200) == 73682);
```
# --solutions--