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

55 lines
2.0 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: 5900f4b31000cf542c50ffc6
title: 问题327末日的房间
challengeType: 5
videoUrl: ''
dashedName: problem-327-rooms-of-doom
---
# --description--
一系列三个房间通过自动门相互连接。
每扇门都由安全卡操作。进入房间后,门会自动关闭,安全卡不能再次使用。一台机器在开始时将分配无限数量的卡,但每个房间(包括起始室)都包含扫描仪,如果他们检测到您持有三张以上的安全卡,或者如果他们在地板上检测到无人看管的安全卡,那么所有的门都将永久锁定。但是,每个房间都有一个盒子,您可以安全地存放任意数量的安全卡,以便在以后使用。
如果您只是尝试一次一个地穿过房间那么当您进入房间3时您将使用所有三张卡片并将永远被困在那个房间
但是如果您使用存储箱则可以进行逃生。例如您可以使用第一张卡进入房间1将一张卡放入存储箱然后使用第三张卡退回到房间。然后在从点胶机收集另外三张牌之后您可以使用一张进入1号房间并收集刚刚放入盒子中的卡片。你现在又有三张牌可以通过剩余的三扇门。此方法允许您使用总共六张安全卡通过所有三个房间。
可以使用总共123张安全卡通过六个房间最多可携带3张卡。
设C是任何时候可以携带的最大卡数。设R是要经过的房间数量。设MCR是分配机器在任何时间通过最多携带C卡的R室所需的最小卡数。
例如M3,6= 123并且M4,6= 23.并且对于3≤C≤4ΣMC6= 146。
对于3≤C≤10给出ΣMC10= 10382。
找3ΣC≤40的ΣMC30
# --hints--
`euler327()`应返回34315549139516。
```js
assert.strictEqual(euler327(), 34315549139516);
```
# --seed--
## --seed-contents--
```js
function euler327() {
return true;
}
euler327();
```
# --solutions--
```js
// solution required
```