freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-217-balanced-number...

56 lines
1.0 KiB
Markdown
Raw Normal View History

---
id: 5900f4461000cf542c50ff58
challengeType: 5
videoUrl: ''
2020-10-01 15:54:21 +00:00
title: 问题217平衡数字
---
## Description
<section id="description">具有k十进制数字的正整数称为平衡如果其第一个⌈k/2⌉数字总和为与其最后的⌈k/2⌉数字相同的值其中⌈x⌉x的发音上限是最小整数≥x因此⌈π⌉= 4且⌈5⌉= 5.因此例如所有回文都是平衡的如13722.设Tn是所有平衡数小于10n的总和。因此T1= 45T2= 540T5= 334795890.求T47mod 315 </section>
## Instructions
<section id="instructions">
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler217()</code>应该返回6273134。
testString: assert.strictEqual(euler217(), 6273134);
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler217() {
// Good luck!
return true;
}
euler217();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
/section>