- Code: Select all
*-----------*
|..9|8..|1..|
|...|.6.|...|
|4..|.7.|.63|
|---+---+---|
|3..|15.|2..|
|.25|.9.|31.|
|..1|.38|..5|
|---+---+---|
|81.|.4.|..2|
|...|.8.|...|
|..3|..6|4..|
*-----------*
*-----------*
|..9|8..|1..|
|...|.6.|...|
|4..|.7.|.63|
|---+---+---|
|3..|15.|2..|
|.25|.9.|31.|
|..1|.38|..5|
|---+---+---|
|81.|.4.|..2|
|...|.8.|...|
|..3|..6|4..|
*-----------*
56 3567 9 8 2 35 1 57 4
1 3578 78 4 6 359 5789 2 79
4 58 2 59 7 1 589 6 3
3 489 48 1 5 7 2 49 6
7 2 5 6 9 4 3 1 8
69 469 1 2 3 8 79 479 5
8 1 67 3579 4 59 5679 3579 2
59 4579 467 3579 8 2 5679 3579 1
2 579 3 579 1 6 4 8 79
9r9c9 => r2c3 <> 7,8
r9c9=9 - r2c9{n9 n7} - c3n7{r2 r78} - r9c2{n79 n5} - r3c2{n5 n8}
| |
r2c3<>7 r2c3<>8
=> r9c9<> 9
ste.
+--------------------+--------------------+---------------------+
| a56 3567 9 | 8 2 35 | 1 b57 4 |
| 1 3578 B78 | 4 6 359 | 5789 2 9-7 |
| 4 58 2 | 59 7 1 | 589 6 3 |
+--------------------+--------------------+---------------------+
| 3 489 B48 | 1 5 7 | 2 49 6 |
| 7 2 5 | 6 9 4 | 3 1 8 |
| 69 469 1 | 2 3 8 | 79 479 5 |
+--------------------+--------------------+---------------------+
| 8 1 67 | 3579 4 59 | 5679 3579 2 |
| a59 A4579 A467 | 3579 8 2 | 5679 3579 1 |
| 2 y579 3 | 579 1 6 | 4 8 z79 |
+--------------------+--------------------+---------------------+
56 b3567 9 | 8 2 35 | 1 a57 4
1 3578 c78 | 4 6 359 | 5789 2 9-7
4 d58 2 | 59 7 1 | 589 6 3
------------------------+----------------------+---------------------
3 489 48 | 1 5 7 | 2 49 6
7 2 5 | 6 9 4 | 3 1 8
69 469 1 | 2 3 8 | 79 479 5
------------------------+----------------------+---------------------
8 1 67 | 3579 4 59 | 569-7 3579 2
59 4579 467 | 3579 8 2 | 569-7 3579 1
2 e579 3 | 579 1 6 | 4 8 f79
*-------------------------------------------------------------*
| 56 c3567 9 | 8 2 35 | 1 57 4 |
| 1 b3578 cb78 | 4 6 359 | 5789 2 a79 |
| 4 c58 2 | 59 7 1 | 589 6 3 |
|--------------------+------------------+---------------------|
| 3 489 48 | 1 5 7 | 2 49 6 |
| 7 2 5 | 6 9 4 | 3 1 8 |
| 69 469 1 | 2 3 8 | 79 479 5 |
|--------------------+------------------+---------------------|
| 8 1 67 | 3579 4 59 | 5679 3579 2 |
| 59 4579 467 | 3579 8 2 | 5679 3579 1 |
| 2 d579 3 | 579 1 6 | 4 8 7-9 |
*-------------------------------------------------------------*