freeCodeCamp/curriculum/challenges/chinese/08-coding-interview-prep/project-euler/problem-390-triangles-with-...

1.2 KiB
Raw Blame History

id challengeType title videoUrl localeTitle
5900f4f21000cf542c510005 5 Problem 390: Triangles with non rational sides and integral area 问题390具有非理性边和积分面积的三角形

Description

考虑边长为√5√65和√68的三角形。可以看出该三角形具有区域9。

Sn是所有三角形的面积之和其边长为√1 + b21 + c2和√b2 + c2对于正整数b和c其积分面积不超过ñ。

示例三角形的b = 2且c = 8。

S106= 18018206。

找到S1010

Instructions

Tests

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

Challenge Seed

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

euler390();

Solution

// solution required