Book of programming problems

Contains advanced programming problems for schools, colleges and problem-hungry inidividuals

Put N knights on a chessboard so that they do not attack each other and all the free squares are attacked
Complexity (1-100): 25
Put N knights on a chessboard so that they do not attack each other and all the unoccupied squares are attacked. If this is not possible, print the error message.

Example: the following picture shows one of the solutions for N=14.

14 knights on a chessboard
Solution:solution.pas
There are no posts in this topic.

Post Reply

Book of programming problems is powered by UseBB 1 Forum Software | Contact Admin