N-queens problem: Difference between revisions

m
fix markup
m (syntax highlighting fixup automation)
m (fix markup)
Line 4,664:
=={{header|EasyLang}}==
 
<syntaxhighlight lang="easylang">subr show_sol
print "Solution " & n_sol
print ""
Line 5,209:
 
=={{header|ERRE}}==
<syntaxhighlight lang="erre">
!------------------------------------------------
! QUEENS.R : solve queens problem on a NxN board
Line 5,345:
The output:
 
<pre>
<syntaxhighlight>
| | | |X| | | | | |
| |X| | | | | | | |
Line 5,367:
10 724
11 2680
</pre>
</syntaxhighlight>
 
=={{header|Factor}}==
Line 14,734:
=={{header|Scilab}}==
Naive brute-force search.
<syntaxhighlight lang="scilab">//Length of board side
Board_size = 8;
 
Line 16,574:
(either by XSLT processors saxon-6.5.5, xsltproc, xalan,
or any of the big5 browsers):
<pre>
<syntaxhighlight>
15863724
16837425
Line 16,580:
83162574
84136275
</pre>
</syntaxhighlight>
 
You can view the results directly in your browser (Chrome/FF/IE/Opera/Safari) here: [[http://stamm-wilbrandt.de/en/xsl-list/n-queens/8-queens.xsl.xml]]
10,333

edits