Description
It is known that fleas in Berland can jump only vertically and horizontally, and the length of the jump is always equal to s centimeters. A flea has found herself at the center of some cell
of the checked board of the size n × m centimeters (each cell is 1 × 1 centimeters). She can jump as she wishes for an arbitrary
number of times, she can even visit a cell more than once. The only restriction is that she cannot jump out of the board.
The flea can count the amount of ce......
阅读全文