Files
freeCodeCamp/curriculum/challenges/russian/08-coding-interview-prep/project-euler/problem-166-criss-cross.russian.md

56 lines
1.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
id: 5900f4131000cf542c50ff25
challengeType: 5
title: 'Problem 166: Criss Cross'
videoUrl: ''
localeTitle: 'Задача 166: Criss Cross'
---
## Description
<section id="description"> Сетка 4x4 заполняется цифрами d, 0 ≤ d ≤ 9. <p> Можно видеть, что в сетке </p><p> 6 3 3 0 5 0 4 3 0 7 1 4 1 2 4 5 </p><p> сумма каждой строки и каждого столбца имеет значение 12. Кроме того, сумма каждой диагонали также равна 12. </p><p> Сколько способов вы можете заполнить сетку 4x4 цифрами d, 0 ≤ d ≤ 9, чтобы каждая строка, каждый столбец и обе диагонали имели одинаковую сумму? </p></section>
## Instructions
<section id="instructions">
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler166()</code> должен вернуть 7130034.
testString: 'assert.strictEqual(euler166(), 7130034, "<code>euler166()</code> should return 7130034.");'
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler166() {
// Good luck!
return true;
}
euler166();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
</section>