Files
freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-136-singleton-difference.md
Oliver Eyton-Williams dec409a4bd fix: s/localeTitle/title/g
2020-10-06 23:10:08 +05:30

943 B
Raw Blame History

id, challengeType, videoUrl, title
id challengeType videoUrl title
5900f3f51000cf542c50ff07 5 问题136单身人士差异

Description

正整数xy和z是算术级数的连续项。假设n是一个正整数当n = 20时方程x2 - y2 - z2 = n恰好有一个解132 - 102 - 72 = 20实际上有二十五个n低于一百的值其中方程有一个独特的解决方案。 n小于五千万的有多少个值只有一个解

Instructions

Tests

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

Challenge Seed

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

euler136();

Solution

// solution required

/section>