Data update
This commit is contained in:
parent
5af6d93694
commit
796d366b97
455 changed files with 7413 additions and 1900 deletions
|
|
@ -29,7 +29,7 @@ proc init . .
|
|||
.
|
||||
.
|
||||
.
|
||||
call init
|
||||
init
|
||||
#
|
||||
proc display . .
|
||||
for i = 1 to 81
|
||||
|
|
@ -52,8 +52,8 @@ proc solve pos . .
|
|||
.
|
||||
if pos > 81
|
||||
# solved
|
||||
call display
|
||||
break 1
|
||||
display
|
||||
return
|
||||
.
|
||||
r = (pos - 1) div 9
|
||||
c = (pos - 1) mod 9
|
||||
|
|
@ -67,7 +67,7 @@ proc solve pos . .
|
|||
row[r + d] = 1
|
||||
col[c + d] = 1
|
||||
box[b + d] = 1
|
||||
call solve pos + 1
|
||||
solve pos + 1
|
||||
row[r + d] = 0
|
||||
col[c + d] = 0
|
||||
box[b + d] = 0
|
||||
|
|
@ -75,7 +75,7 @@ proc solve pos . .
|
|||
.
|
||||
grid[pos] = 0
|
||||
.
|
||||
call solve 1
|
||||
solve 1
|
||||
#
|
||||
input_data
|
||||
5 3 0 0 2 4 7 0 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue