Files
freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-155-counting-capacitor-circuits.chinese.md
Oliver Eyton-Williams 61460c8601 fix: insert blank line after ```
search and replace ```\n< with ```\n\n< to ensure there's an empty line
before closing tags
2020-08-16 04:45:20 +05:30

57 lines
1.5 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: 5900f4081000cf542c50ff1a
challengeType: 5
title: 'Problem 155: Counting Capacitor Circuits'
videoUrl: ''
localeTitle: 问题155计算电容器电路
---
## Description
<section id="description">电路仅使用相同值C的相同电容器。 <p>电容器可以串联或并联连接以形成子单元子单元然后可以与其他电容器或其他子单元串联或并联连接以形成更大的子单元以此类推直到最终电路。使用这个简单的程序和多达n个相同的电容器我们可以制造具有一系列不同总电容的电路。例如使用最多n = 3个电容器每个电容器为60 F我们可以获得以下7个不同的总电容值 </p><p>如果我们用Dn表示当使用多达n个等值电容器时我们可以获得的不同总电容值的数量和上述简单程序我们得到D1= 1D2= 3 D3= 7 ...求D18。提醒当并联电容器C1C2等时总电容为CT = C1 + C2 + ...... </p><p>而当它们串联连接时,总电容由下式给出: </p></section>
## Instructions
<section id="instructions">
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler155()</code>应返回3857447。
testString: assert.strictEqual(euler155(), 3857447);
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler155() {
// Good luck!
return true;
}
euler155();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
/section>