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

1.2 KiB
Raw Blame History

id, title, challengeType, videoUrl, dashedName
id title challengeType videoUrl dashedName
5900f4081000cf542c50ff1a 问题155计算电容器电路 5 problem-155-counting-capacitor-circuits

--description--

电路仅使用相同值C的相同电容器。

电容器可以串联或并联连接以形成子单元子单元然后可以与其他电容器或其他子单元串联或并联连接以形成更大的子单元以此类推直到最终电路。使用这个简单的程序和多达n个相同的电容器我们可以制造具有一系列不同总电容的电路。例如使用最多n = 3个电容器每个电容器为60 F我们可以获得以下7个不同的总电容值

如果我们用Dn表示当使用多达n个等值电容器时我们可以获得的不同总电容值的数量和上述简单程序我们得到D1= 1D2= 3 D3= 7 ...求D18。提醒当并联电容器C1C2等时总电容为CT = C1 + C2 + ......

而当它们串联连接时,总电容由下式给出:

--hints--

euler155()应返回3857447。

assert.strictEqual(euler155(), 3857447);

--seed--

--seed-contents--

function euler155() {

  return true;
}

euler155();

--solutions--

// solution required