View Code? Open in Web Editor
NEW
A knight's tour (HorseRPG) is a sequence of moves of a knight on a chessboard such that the knight visits every square exactly once.
horserpg's Introduction
- Enter the size of the map and the location of the self-propelled gun at the beginning
- Fill in the numbers from the starting position
- Fill in according to the rules of chess horse walking day
- Output all the ways to fill the map
- Numbers will not be repeated to the same box
- The integers n and m represent the size of the map
- The integers x and y represent the starting coordinates of the Knight
- There are several possibilities to fill in numbers