freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-332-spherical-trian...

1.2 KiB
Raw Blame History

id challengeType videoUrl title
5900f4b91000cf542c50ffcb 5 问题332球形三角形

Description

球面三角形是通过在三个顶点中成对交叉的三个大圆弧形成在球体表面上的图形。

设Cr为具有中心0,0,0和半径r的球体。设Zr为具有整数坐标的Cr表面上的点集。令Tr为顶点为Zr的球形三角形的集合。由相同大弧上的三个点形成的简并球面三角形不包括在Tr中。设Ar为Tr中最小球面三角形的面积。

例如A14是3.294040四舍五入到小数点后六位。

找到Ar。将您的答案四舍五入到小数点后六位。

Instructions

Tests

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

Challenge Seed

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

euler332();

Solution

// solution required

/section>