freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-135-same-difference...

22 lines
529 B
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: 5900f3f31000cf542c50ff06
title: 问题135同样的差异
challengeType: 5
videoUrl: ''
---
# --description--
给定正整数xy和z是算术级数的连续项正整数n的最小值其中等式x2-y2-z2 = n恰好有两个解是n = 27342 - 272 - 202 = 122 - 92 - 62 = 27事实证明n = 1155是具有正好十个解的最小值。 n不到一百万的多少个值有十个不同的解
# --hints--
`euler135()`应该返回4989。
```js
assert.strictEqual(euler135(), 4989);
```
# --solutions--