Click here to read the complete problem statement.
the solution doesn’t seem right. because there are more 45 grids in the 8 sides (with corner) beside the following 45 grid as it is 2020*2020 grid, so the positions may violate by the attack of another warrior from the side grid