freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-258-a-lagged-fibona...

56 lines
789 B
Markdown
Raw Normal View History

---
id: 5900f46e1000cf542c50ff81
challengeType: 5
videoUrl: ''
2020-10-01 15:54:21 +00:00
title: 问题258滞后的斐波那契序列
---
## Description
<section id="description">序列定义为: <p> gk = 1对于0≤k≤1999gk = gk-2000 + gk-1999对于k≥2000。对于k = 1018找到gk mod 20092010。 </p></section>
## Instructions
<section id="instructions">
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler258()</code>应该返回12747994。
testString: assert.strictEqual(euler258(), 12747994);
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler258() {
// Good luck!
return true;
}
euler258();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
/section>