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,31 @@
---
id: 5900f4481000cf542c50ff5b
title: 问题220高速公路龙
challengeType: 5
videoUrl: ''
title: 问题220高速公路龙
---
## Description
<section id="description">设D0为双字母串“Fa”。对于n≥1通过字符串重写规则从Dn-1导出Dn <p> “a”→“aRbFR”“b”→“LFaLb” </p><p>因此D0 =“Fa”D1 =“FaRbFR”D2 =“FaRbFRRLFaLbFR”等等。 </p><p>这些字符串可以解释为计算机图形程序的指令“F”表示“向前绘制一个单位”“L”表示“向左转90度”“R”表示“向右转90度”和“a” “和”b“被忽略了。计算机光标的初始位置是0,0指向0,1</p><p>然后Dn是一种奇特的绘画被称为n阶的Heighway Dragon。例如D10如下所示;将每个“F”计为一步18,16处的突出显示点是500步后达到的位置。 </p><p> D50中1012步后光标的位置是什么以xy的形式给出答案没有空格。 </p></section>
# --description--
## Instructions
<section id="instructions">
</section>
设D0为双字母串“Fa”。对于n≥1通过字符串重写规则从Dn-1导出Dn
## Tests
<section id='tests'>
“a”→“aRbFR”“b”→“LFaLb”
```yml
tests:
- text: '<code>euler220()</code>应返回139776,963904。'
testString: assert.strictEqual(euler220(), 139776, 963904);
因此D0 =“Fa”D1 =“FaRbFR”D2 =“FaRbFRRLFaLbFR”等等。
```
这些字符串可以解释为计算机图形程序的指令“F”表示“向前绘制一个单位”“L”表示“向左转90度”“R”表示“向右转90度”和“a” “和”b“被忽略了。计算机光标的初始位置是0,0指向0,1
</section>
然后Dn是一种奇特的绘画被称为n阶的Heighway Dragon。例如D10如下所示;将每个“F”计为一步18,16处的突出显示点是500步后达到的位置。
## Challenge Seed
<section id='challengeSeed'>
D50中1012步后光标的位置是什么以xy的形式给出答案没有空格。
<div id='js-seed'>
# --hints--
`euler220()`应返回139776,963904。
```js
function euler220() {
// Good luck!
return true;
}
euler220();
assert.strictEqual(euler220(), 139776, 963904);
```
</div>
# --solutions--
</section>
## Solution
<section id='solution'>
```js
// solution required
```
/section>