freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-233-lattice-points-...

878 B
Raw Blame History

id challengeType videoUrl title
5900f4551000cf542c50ff68 5 问题233圆上的格点

Description

令fN是在通过0,0N00NNN的圆上具有整数坐标的点的数量。可以证明f10000= 36。

所有正整数N≤1011的总和是多少fN= 420

Instructions

Tests

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

Challenge Seed

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

euler233();

Solution

// solution required

/section>