RACSODFACFGOperations: Reg, CFPDAReductions: K, WP, CFG, NP, SATANTLR: lexical, syntacticExams | log in, register, become guest |
n: intThe input is , the size of the board, as well as the number of queens to place in it.
chessboard: array of array of intThe output consists of a two-dimensional array simulating the board. It should have size . The position should contain a if a queen is placed there, or a otherwise. The rows and columns are identified by a number between and .
|