freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-166-criss-cross.md

56 lines
982 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

---
id: 5900f4131000cf542c50ff25
challengeType: 5
videoUrl: ''
title: 问题166克里斯十字架
---
## Description
<section id="description"> 4x4网格填充数字d0≤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>在多少种方法中您可以使用数字d0≤d≤9填充4x4网格以便每行每列和两个对角线具有相同的总和 </p></section>
## Instructions
<section id="instructions">
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler166()</code>应返回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>