freeCodeCamp/curriculum/challenges/russian/08-coding-interview-prep/project-euler/problem-76-counting-summati...

1.1 KiB

id challengeType title videoUrl localeTitle
5900f3b81000cf542c50fecb 5 Problem 76: Counting summations Задача 76: подсчет сумм

Description

Можно записать пять в виде суммы ровно по шесть разных способов: 4 + 1 3 + 2 3 + 1 + 1 2 + 2 + 1 2 + 1 + 1 + 1 1 + 1 + 1 + 1 + 1 Сколько разных пути можно записать в виде суммы по крайней мере двух положительных целых чисел?

Instructions

Tests

tests:
  - text: <code>euler76()</code> должен вернуть 190569291.
    testString: 'assert.strictEqual(euler76(), 190569291, "<code>euler76()</code> should return 190569291.");'

Challenge Seed

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

euler76();

Solution

// solution required