freeCodeCamp/curriculum/challenges/russian/08-coding-interview-prep/project-euler/problem-142-perfect-square-...

1.0 KiB
Raw Blame History

id challengeType title videoUrl localeTitle
5900f3fa1000cf542c50ff0d 5 Problem 142: Perfect Square Collection Проблема 142: Идеальная квадратная коллекция

Description

Найти наименьшие x + y + z с целыми числами x> y> z> 0 такими, что x + y, x - y, x + z, x - z, y + z, y - z - все совершенные квадраты.

Instructions

Tests

tests:
  - text: <code>euler142()</code> должен возвращать 1006193.
    testString: 'assert.strictEqual(euler142(), 1006193, "<code>euler142()</code> should return 1006193.");'

Challenge Seed

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

euler142();

Solution

// solution required