#P1644. 跳马问题
跳马问题
Description
A half Xiangqi (Chinese chess) board is shown in Figure 1. A horse starts from the lower-left corner and jumps to the upper-right corner . It is only allowed to jump to the right; jumping to the left is not allowed. For example, the route shown in Figure 1 is one valid path. Print the total number of paths.

Input Format
A single line: two integers and .
Output Format
A single integer: the total number of ways .
4 8
37
Hint
For of the testdata: .
Translated by ChatGPT 5
京公网安备 11011102002149号