freeCodeCamp/curriculum/challenges/chinese/08-coding-interview-prep/project-euler/problem-411-uphill-paths.ch...

56 lines
1.3 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: 5900f5081000cf542c510019
challengeType: 5
title: 'Problem 411: Uphill paths'
videoUrl: ''
localeTitle: 问题411上坡路径
---
## Description
<section id="description">设n是正整数。假设坐标xy=2i mod n3i mod n的站点为0≤i≤2n。我们将考虑与同一站点具有相同坐标的站点。 <p>我们希望形成从0,0nn的路径使得x和y坐标永不减少。设Sn是路径可以通过的最大站数。 </p><p>例如如果n = 22则有11个不同的站并且有效路径最多可以通过5个站。因此S22= 5.下面举例说明了一个最佳路径的例子: </p><p>还可以证实S123= 14并且S10000= 48。 </p><p>求1Σk≤30ΣSk5</p></section>
## Instructions
<section id="instructions">
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler411()</code>应返回9936352。
testString: 'assert.strictEqual(euler411(), 9936352, "<code>euler411()</code> should return 9936352.");'
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler411() {
// Good luck!
return true;
}
euler411();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
</section>