Files
freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-419-look-and-say-sequence.chinese.md
Oliver Eyton-Williams 61460c8601 fix: insert blank line after ```
search and replace ```\n< with ```\n\n< to ensure there's an empty line
before closing tags
2020-08-16 04:45:20 +05:30

76 lines
1.4 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
id: 5900f5101000cf542c510022
challengeType: 5
title: 'Problem 419: Look and say sequence'
videoUrl: ''
localeTitle: 问题419先说顺序
---
## Description
<section id="description">
外观序列依次为111211211111221312211131122211113213211...
该序列以1开头并且所有其他成员都是通过用连续数字描述前一个成员而获得的。
大声地这样做有助于:
1是“一个”→11
11是“两个”→21
21是“一二一一”→1211
1211是``一一,一二和二一''→111221
111221是“三一”→312211
...
将AnBn和Cn分别定义为序列的第n个元素中的1、2和3的数目。
可以验证A40= 31254B40= 20259和C40= 11625。
找到n1012的AnBn和Cn
给您的答案模块230并用逗号分隔AB和C的值。
例如 对于n = 40答案将是31254,20259,11625
</section>
## Instructions
<section id="instructions">
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler419()</code>应该返回998567458, 1046245404, 43363922。
testString: assert.strictEqual(euler419(), 998567458, 1046245404, 43363922);
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler419() {
// Good luck!
return true;
}
euler419();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
/section>