File tree Expand file tree Collapse file tree 2 files changed +9
-12
lines changed
Expand file tree Collapse file tree 2 files changed +9
-12
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,6 @@ def main
1919 j_pb := j_pb + 1
2020 writeString: "\n"
2121 i_pb := i_pb + 1
22- writeString: "\n"
2322
2423 def isSafe is byte: board_param as byte[][], row_param col_param n_param as int
2524 var i_is j_is is int
@@ -97,7 +96,7 @@ def main
9796 else :
9897 writeString: "No solution exists.\n"
9998
100- writeString: "Enter board size: "
99+ # writeString: "Enter board size: "
101100 size_main := readInteger()
102101 if size_main > 20 :
103102 writeString: "Warning: Board size capped at 20 due to program limits.\n"
Original file line number Diff line number Diff line change 1- Q . . . . . . .
2- . . . . . . Q .
3- . . . . Q . . .
4- . . . Q . . . .
5- . . Q . . . . .
6- . Q . . . . . .
7- . . . . . Q . .
8- . . . . . . . Q
9-
10- Solution found.
1+ Q . . . . . . .
2+ . . . . Q . . .
3+ . . . . . . . Q
4+ . . . . . Q . .
5+ . . Q . . . . .
6+ . . . . . . Q .
7+ . Q . . . . . .
8+ . . . Q . . . .
You can’t perform that action at this time.
0 commit comments