freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-388-distinct-lines.md

737 B
Raw Blame History

id title challengeType videoUrl dashedName
5900f4f11000cf542c510002 问题388不同的线条 5 problem-388-distinct-lines

--description--

考虑所有格点abc其中0≤abc≤N。

从原点O0,0,0开始所有线都被绘制到其他格点。设DN是不同的这种线的数量。

您被给予D1 000 000= 831909254469114121。

找到D1010。将前9位数字后跟最后9位数字作为答案。

--hints--

euler388()应该返回831907372805130000。

assert.strictEqual(euler388(), 831907372805130000);

--seed--

--seed-contents--

function euler388() {

  return true;
}

euler388();

--solutions--

// solution required