Number of tours through m x n grid?
问题 Let T(x,y) be the number of tours over a X × Y grid such that: the tour starts in the top left square the tour consists of moves that are up, down, left, or right one square, the tour visits each square exactly once, and the tour ends in the bottom left square. It’s easy to see, for example, that T(2,2) = 1, T(3,3) = 2, T(4,3) = 0, and T(3,4) = 4. Write a program to calculate T(10,4). I have been working on this for hours ... I need a program that takes the dimensions of the grid as input and