Jump to content

N-queens problem: Difference between revisions

missed some <lang> elements
(Convert <lang> elements to <syntaxhighlight>)
(missed some <lang> elements)
Line 4,664:
=={{header|EasyLang}}==
 
<langsyntaxhighlight>subr show_sol
print "Solution " & n_sol
print ""
Line 5,209:
 
=={{header|ERRE}}==
<syntaxhighlight>
<lang>
!------------------------------------------------
! QUEENS.R : solve queens problem on a NxN board
Line 5,345:
The output:
 
<syntaxhighlight>
<lang>
| | | |X| | | | | |
| |X| | | | | | | |
Line 14,734:
=={{header|Scilab}}==
Naive brute-force search.
<langsyntaxhighlight>//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):
<syntaxhighlight>
<lang>
15863724
16837425
305

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.