* 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>
1.2 KiB
1.2 KiB
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个不同的总电容值:
如果我们用D(n)表示当使用多达n个等值电容器时我们可以获得的不同总电容值的数量和上述简单程序,我们得到:D(1)= 1,D(2)= 3 ,D(3)= 7 ...求D(18)。提醒:当并联电容器C1,C2等时,总电容为CT = C1 + C2 + ......,
而当它们串联连接时,总电容由下式给出:
--hints--
euler155()
应返回3857447。
assert.strictEqual(euler155(), 3857447);
--seed--
--seed-contents--
function euler155() {
return true;
}
euler155();
--solutions--
// solution required