Editorial
First key fact:
Knights always attack cells of the opposite color to the one they are on.
Second key fact:
For , it is advantageous to place all the knights on cells of the same color.
To obtain the maximum number of knights that we can place on one board for , let's calculate the number of cells of each color:
Black cells:
White cells:
When , we can place knights on all cells, because no knight can reach another.
Now, having the maximum number of knights, , that we can place on one board, the number of boards needed to accommodate knights is found by the formula:
Asymptotic complexity:
Problem Author: | Bohdan Feisa |
Problem Prepared by: | Bohdan Feisa, Pavlo Tsikey |
Editorial by: | Bohdan Feisa |