A.Chip Game 题目描述
Burenka and Tonya are playing an old Buryat game with a chip on a board of n \times m cells.
At the beginning of the game, the chip is located in the lower left corner of the board. In one move, the player can move the chip to the ri…