#353. 猴 问题
猴 问题
No testdata at current.
Description
在 的棋盘里面放 个猴
,使他们互不攻击,共有多少种摆放方案?
Format
Input
两个正整数,分别表示 和 。
Output
一个整数表示答案(答案对1e9+7取模)
Samples
2 2
2
2 3
0
Limitation
No testdata at current.
在 N×N 的棋盘里面放 K 个猴
,使他们互不攻击,共有多少种摆放方案?
两个正整数,分别表示 N 和 K 。
一个整数表示答案(答案对1e9+7取模)
2 2
2
2 3
0
1≤N≤9,1≤K≤N∗N
By signing up a acjudge universal account, you can submit code and join discussions in all online judging services provided by us.