问题3110--chess

3110: chess

[命题人 : ]
时间限制 : 1.000 sec  内存限制 : 64 MB

题目描述

We have a chessboard, as the figure below, it shows the chessboard with dimension 1, 3, 5, 7 (We ignore the even number).Now, your task is to place K bishops on the n – dimension chessboard and satisfied that none of then attack each other ( A bishop can move to any distance in any of the four diagonal directions).

输入

The input contains two integers n ( n < 100 && n % 2 == 1 )and k ( k <= 10000) separated by a single space.

输出

Output the answer mod 100007.

样例输入 Copy

7 3
1 1

样例输出 Copy

1038
1

来源/分类