Files
freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-166-criss-cross.chinese.md
Oliver Eyton-Williams 61460c8601 fix: insert blank line after ```
search and replace ```\n< with ```\n\n< to ensure there's an empty line
before closing tags
2020-08-16 04:45:20 +05:30

1022 B
Raw Blame History

id, challengeType, title, videoUrl, localeTitle
id challengeType title videoUrl localeTitle
5900f4131000cf542c50ff25 5 Problem 166: Criss Cross 问题166克里斯十字架

Description

4x4网格填充数字d0≤d≤9。

可以看出,在网格中

6 3 3 0 5 0 4 3 0 7 1 4 1 2 4 5

每行和每列的总和值为12.此外每个对角线的总和也是12。

在多少种方法中您可以使用数字d0≤d≤9填充4x4网格以便每行每列和两个对角线具有相同的总和

Instructions

Tests

tests:
  - text: <code>euler166()</code>应返回7130034。
    testString: assert.strictEqual(euler166(), 7130034);

Challenge Seed

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

euler166();

Solution

// solution required

/section>