freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-259-reachable-numbe...

56 lines
1.2 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: 5900f4701000cf542c50ff82
challengeType: 5
videoUrl: ''
title: 问题259可达号码
---
## Description
<section id="description">如果正整数可以由遵循以下规则的算术表达式产生,则称为正整数: <p>按顺序使用数字1到9每个数字恰好一次。可以连接任何连续的数字例如使用数字2,3和4我们获得数字234。只允许四种常用的二进制算术运算加法减法乘法和除法。每个操作可以使用任何次数或者根本不使用。不允许一元减号。可以使用任意数量可能嵌套的括号来定义操作的顺序。例如42是可达的因为1/23 <em>4</em> 5-6*78-9= 42。 </p><p>所有正可达整数的总和是多少? </p></section>
## Instructions
<section id="instructions">
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler259()</code>应返回20101196798。
testString: assert.strictEqual(euler259(), 20101196798);
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler259() {
// Good luck!
return true;
}
euler259();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
/section>