- Code: Select all
*-----------*
|12.|...|.3.|
|..4|7..|..6|
|..5|..1|..8|
|---+---+---|
|.6.|.72|...|
|..8|...|4..|
|...|54.|.2.|
|---+---+---|
|5..|8..|9..|
|9..|..7|3..|
|.3.|...|.57|
*-----------*
*-----------*
|12.|...|.3.|
|..4|7..|..6|
|..5|..1|..8|
|---+---+---|
|.6.|.72|...|
|..8|...|4..|
|...|54.|.2.|
|---+---+---|
|5..|8..|9..|
|9..|..7|3..|
|.3.|...|.57|
*-----------*
1 2 679 469 8 4569 57 3 459
38 89 4 7 239 359 125 19 6
36 79 5 23469 2369 1 27 49 8
4 6 139 139 7 2 158 189 1359
2 5 8 1369 1369 369 4 7 139
7 19 139 5 4 8 6 2 139
5 147 1267 8 1236 36 9 146 124
9 148 126 126 5 7 3 1468 124
68 3 126 12469 1269 469 18 5 7
9r2c2 => r7c8 <> 1,4,6
r2c2=9 - r2c8{n9 n1}
r2c2=9 - c2n8{r2 r8} - c2n4{r8 r7}
r2c2=9 - r3c2{n9 n7} - r3c7{n7 n2} - 15r2c78 - r2c6{n59 n3} - r7c6{n3 n6}
=> r2c2 <> 9
ste.
+--------------------+------------------------+----------------------+
| 1 2 679 | 469 8 4569 | 57 3 459 |
| X38 X8-9 4 | 7 Y239 w359 | Y125 b19 6 |
| 36 ZB79 5 | 23469 2369 1 | Z27 49 8 |
+--------------------+------------------------+----------------------+
| 4 6 139 | 139 7 2 | 158 189 1359 |
| 2 5 8 | 1369 1369 369 | 4 7 139 |
| 7 B19 139 | 5 4 8 | 6 2 139 |
+--------------------+------------------------+----------------------+
| 5 B147 1267 | 8 1236 v36 | 9 uAa146 124 |
| 9 148 126 | 126 5 7 | 3 1468 124 |
| 68 3 126 | 12469 1269 469 | 18 5 7 |
+--------------------+------------------------+----------------------+