58 lines
1.3 KiB
Markdown
58 lines
1.3 KiB
Markdown
---
|
||
id: 5900f4131000cf542c50ff25
|
||
challengeType: 5
|
||
title: 'Problem 166: Criss Cross'
|
||
forumTopicId: 301800
|
||
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> should return 7130034.
|
||
testString: assert.strictEqual(euler166(), 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>
|