Files
freeCodeCamp/curriculum/challenges/ukrainian/10-coding-interview-prep/project-euler/problem-195-inscribed-circles-of-triangles-with-one-angle-of-60-degrees.md

1.3 KiB
Raw Permalink Blame History

id, title, challengeType, forumTopicId, dashedName
id title challengeType forumTopicId dashedName
5900f4311000cf542c50ff43 Завдання 195: Кола, вписані в трикутники, один з кутів яких становить 60 градусів 5 301833 problem-195-inscribed-circles-of-triangles-with-one-angle-of-60-degrees

--description--

Назвемо трикутник зі сторонами, довжина яких вимірюється цілими числами, і з одним із кутів, який становить 60°, 60° трикутником.

Нехай r буде радіусом вписаного в такий 60° трикутник кола.

Існує 1234 60° трикутників, для яких r ≤ 100.

Нехай T(n) буде кількістю 60° трикутників, для яких r ≤ n, тож T(100) = 1234, T(1000) = 22767 і T(10000) = 359912.

Знайдіть T(1053779).

--hints--

inscribedCirclesOfTriangles() має видати 75085391.

assert.strictEqual(inscribedCirclesOfTriangles(), 75085391);

--seed--

--seed-contents--

function inscribedCirclesOfTriangles() {

  return true;
}

inscribedCirclesOfTriangles();

--solutions--

// solution required