Files
freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-135-same-differences.chinese.md
Oliver Eyton-Williams 61460c8601 fix: insert blank line after ```
search and replace ```\n< with ```\n\n< to ensure there's an empty line
before closing tags
2020-08-16 04:45:20 +05:30

978 B
Raw Blame History

id, challengeType, title, videoUrl, localeTitle
id challengeType title videoUrl localeTitle
5900f3f31000cf542c50ff06 5 Problem 135: Same differences 问题135同样的差异

Description

给定正整数xy和z是算术级数的连续项正整数n的最小值其中等式x2-y2-z2 = n恰好有两个解是n = 27342 - 272 - 202 = 122 - 92 - 62 = 27事实证明n = 1155是具有正好十个解的最小值。 n不到一百万的多少个值有十个不同的解

Instructions

Tests

tests:
  - text: <code>euler135()</code>应该返回4989。
    testString: assert.strictEqual(euler135(), 4989);

Challenge Seed

function euler135() {
  // Good luck!
  return true;
}

euler135();

Solution

// solution required

/section>