Files
freeCodeCamp/curriculum/challenges/chinese/08-coding-interview-prep/project-euler/problem-217-balanced-numbers.chinese.md

56 lines
1.1 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: 5900f4461000cf542c50ff58
challengeType: 5
title: 'Problem 217: Balanced Numbers'
videoUrl: ''
localeTitle: 问题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, "<code>euler217()</code> should return 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>