chore(i8n,learn): processed translations

This commit is contained in:
Crowdin Bot
2021-02-06 04:42:36 +00:00
committed by Mrugesh Mohapatra
parent 15047f2d90
commit e5c44a3ae5
3274 changed files with 172122 additions and 14164 deletions

View File

@ -1,27 +1,129 @@
---
id: 5900f3cc1000cf542c50fedf
title: 问题96苏杜库
title: 'Problem 96: Su Doku'
challengeType: 5
videoUrl: ''
forumTopicId: 302213
dashedName: problem-96-su-doku
---
# --description--
Su Doku日语含义数字位置是流行拼图概念的名称。它的起源尚不清楚但必须归功于莱昂哈德·欧拉Leonhard Euler他发明了一种类似的更加困难的拼图游戏称为拉丁广场Latin Squares。然而Su Doku谜题的目标是替换9乘9网格中的空白或零使得每行每列和3乘3包含每个数字1到9.下面是一个示例一个典型的起始拼图网格及其解决方案网格。
Su Doku (Japanese meaning *number place*) is the name given to a popular puzzle concept. Its origin is unclear, but credit must be attributed to Leonhard Euler who invented a similar, and much more difficult, puzzle idea called Latin Squares. The objective of Su Doku puzzles, however, is to replace the blanks (or zeros) in a 9 by 9 grid in such that each row, column, and 3 by 3 box contains each of the digits 1 to 9. Below is an example of a typical starting puzzle grid and its solution grid.
0 0 39 0 00 0 1 0 2 03 0 58 0 6 6 0 00 0 14 0 0 0 0 87 0 00 0 6 1 0 20 0 07 0 8 9 0 00 0 82 0 0 0 0 28 0 00 0 5 6 0 92 0 30 1 0 5 0 00 0 93 0 0
<div style="margin: auto; background-color: white; padding: 10px; width: 80%; text-align: center;">
<table border="0" cellpadding="0" cellspacing="0" align="center">
<tbody>
<tr>
<td>
<table cellpadding="5" cellspacing="0" border="1">
<tbody>
<tr>
<td style="font-family:'courier new';font-size:14pt; color: black; padding: 5px; border: 2px solid black;">
0 0 3<br />9 0 0<br />0 0 1
</td>
<td style="font-family:'courier new';font-size:14pt; color: black; padding: 5px; border: 2px solid black;">
0 2 0<br />3 0 5<br />8 0 6
</td>
<td style="font-family:'courier new';font-size:14pt; color: black; padding: 5px; border: 2px solid black;">
6 0 0<br />0 0 1<br />4 0 0
</td>
</tr>
<tr>
<td style="font-family:'courier new';font-size:14pt; color: black; padding: 5px; border: 2px solid black;">
0 0 8<br />7 0 0<br />0 0 6
</td>
<td style="font-family:'courier new';font-size:14pt; color: black; padding: 5px; border: 2px solid black;">
1 0 2<br />0 0 0<br />7 0 8
</td>
<td style="font-family:'courier new';font-size:14pt; color: black; padding: 5px; border: 2px solid black;">
9 0 0<br />0 0 8<br />2 0 0
</td>
</tr>
<tr>
<td style="font-family:'courier new';font-size:14pt; color: black; padding: 5px; border: 2px solid black;">
0 0 2<br />8 0 0<br />0 0 5
</td>
<td style="font-family:'courier new';font-size:14pt; color: black; padding: 5px; border: 2px solid black;">
6 0 9<br />2 0 3<br />0 1 0
</td>
<td style="font-family:'courier new';font-size:14pt; color: black; padding: 5px; border: 2px solid black;">
5 0 0<br />0 0 9<br />3 0 0
</td>
</tr>
</tbody>
</table>
</td>
<td width="50">
<img src="images/spacer.gif" width="50" height="1" alt="" /><br />
</td>
<td>
<table cellpadding="5" cellspacing="0" border="1">
<tbody>
<tr>
<td style="font-family:'courier new';font-size:14pt; color: black; padding: 5px; border: 2px solid black;">
4 8 3<br />9 6 7<br />2 5 1
</td>
<td style="font-family:'courier new';font-size:14pt; color: black; padding: 5px; border: 2px solid black;">
9 2 1<br />3 4 5<br />8 7 6
</td>
<td style="font-family:'courier new';font-size:14pt; color: black; padding: 5px; border: 2px solid black;">
6 5 7<br />8 2 1<br />4 9 3
</td>
</tr>
<tr>
<td style="font-family:'courier new';font-size:14pt; color: black; padding: 5px; border: 2px solid black;">
5 4 8<br />7 2 9<br />1 3 6
</td>
<td style="font-family:'courier new';font-size:14pt; color: black; padding: 5px; border: 2px solid black;">
1 3 2<br />5 6 4<br />7 9 8
</td>
<td style="font-family:'courier new';font-size:14pt; color: black; padding: 5px; border: 2px solid black;">
9 7 6<br />1 3 8<br />2 4 5
</td>
</tr>
<tr>
<td style="font-family:'courier new';font-size:14pt; color: black; padding: 5px; border: 2px solid black;">
3 7 2<br />8 1 4<br />6 9 5
</td>
<td style="font-family:'courier new';font-size:14pt; color: black; padding: 5px; border: 2px solid black;">
6 8 9<br />2 5 3<br />4 1 7
</td>
<td style="font-family:'courier new';font-size:14pt; color: black; padding: 5px; border: 2px solid black;">
5 1 4<br />7 6 9<br />3 8 2
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
4 8 39 6 72 5 1 9 2 13 4 58 7 6 6 5 78 2 14 9 3 5 4 87 2 91 3 6 1 3 25 6 47 9 8 9 7 61 3 82 4 5 3 7 28 1 46 9 5 6 8 92 5 34 1 7 5 1 47 6 93 8 2
A well constructed Su Doku puzzle has a unique solution and can be solved by logic, although it may be necessary to employ "guess and test" methods in order to eliminate options (there is much contested opinion over this). The complexity of the search determines the difficulty of the puzzle; the example above is considered easy because it can be solved by straight forward direct deduction.
一个构造良好的Su Doku拼图有一个独特的解决方案可以通过逻辑解决虽然可能需要采用“猜测和测试”方法来消除选项对此有很多争议的意见。搜索的复杂性决定了拼图的难度;上面的例子被认为是简单的,因为它可以通过直接直接扣除来解决。 6K文本文件sudoku.txt右键单击和'保存链接/目标为...'包含五十个不同的Su Doku难题但都有独特的解决方案文件中的第一个谜题是上面的例子 。通过解决所有五十个谜题找到每个解决方案网格左上角找到的3位数字的总和;例如483是上面解决方案网格左上角的3位数字。
The `puzzlesArr` array contains fifty different Su Doku puzzle strings ranging in difficulty, but all with unique solutions (the first puzzle in the array is the example in the challenge description).
By solving all fifty puzzles find the sum of the 3-digit numbers found in the top left corner of each solution grid; for example, 483 is the 3-digit number found in the top left corner of the solution grid above.
# --hints--
`euler96()`应返回24702。
`suDoku(testPuzzles)` should return a number.
```js
assert.strictEqual(euler96(), 24702);
assert(typeof suDoku(testPuzzles) === 'number');
```
`suDoku(testPuzzles)` should return 1190.
```js
assert.strictEqual(suDoku(testPuzzles), 1190);
```
`suDoku(puzzlesArr)` should return 24702.
```js
assert.strictEqual(suDoku(puzzlesArr), 24702);
```
# --seed--