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

56 lines
1.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

---
id: 5900f4461000cf542c50ff58
challengeType: 5
videoUrl: ''
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>