Skip to content

Commit

Permalink
unbotch plain prolog
Browse files Browse the repository at this point in the history
  • Loading branch information
TeamSPoon committed Nov 30, 2024
1 parent 70c7d0e commit 5776ce5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ nqueens(N, Solution) :-
% Start the benchmark
benchmark(N) :-
statistics(walltime, [_ | [_]]),
nqueens(N, Solution),
findall(S, nqueens(N, S), Solutions),
length(Solutions, Length),
statistics(walltime, [_ | [Elapsed]]),
length(Solution, Length),
format("N=~w: ~w solutions found in ~w ms~n", [N, Length, Elapsed]).
EOF

Expand Down

0 comments on commit 5776ce5

Please sign in to comment.