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

996 B
Raw Blame History

id challengeType title videoUrl localeTitle
5900f4551000cf542c50ff68 5 Problem 233: Lattice points on a circle 问题233圆上的格点

Description

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

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

Instructions

Tests

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

Challenge Seed

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

euler233();

Solution

// solution required