Files
freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-364-comfortable-distance.md
Oliver Eyton-Williams ee1e8abd87 feat(curriculum): restore seed + solution to Chinese (#40683)
* feat(tools): add seed/solution restore script

* chore(curriculum): remove empty sections' markers

* chore(curriculum): add seed + solution to Chinese

* chore: remove old formatter

* fix: update getChallenges

parse translated challenges separately, without reference to the source

* chore(curriculum): add dashedName to English

* chore(curriculum): add dashedName to Chinese

* refactor: remove unused challenge property 'name'

* fix: relax dashedName requirement

* fix: stray tag

Remove stray `pre` tag from challenge file.

Signed-off-by: nhcarrigan <nhcarrigan@gmail.com>

Co-authored-by: nhcarrigan <nhcarrigan@gmail.com>
2021-01-12 19:31:00 -07:00

43 lines
942 B
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: 5900f4d91000cf542c50ffea
title: 问题364舒适的距离
challengeType: 5
videoUrl: ''
dashedName: problem-364-comfortable-distance
---
# --description--
连续N个座位。根据以下规则N人互相填充座位如果有任何座位相邻的座位没有被占用请使用这样的座位。如果没有这样的座位并且有任何座位仅占用一个相邻的座位则使用这样的座位。否则请选择剩余的可用座位之一。
设TN是具有给定规则的N个人占用N个座位的可能性的数量。下图显示T4= 8。
我们可以验证T10= 61632和T1 000mod 100 000 007 = 47255094.求T1 000 000mod 100 000 007。
# --hints--
`euler364()`应返回44855254。
```js
assert.strictEqual(euler364(), 44855254);
```
# --seed--
## --seed-contents--
```js
function euler364() {
return true;
}
euler364();
```
# --solutions--
```js
// solution required
```