给定两个整数 n 和 m,询问满足如下条件的序列 a 的数量:
在一行上输入两个整数 n,m (1≤n≤300;0≤m≤300) 表示序列的长度和序列的取值范围。
在一行上输出一个整数,表示满足条件的不同的序列 a 的数量;由于答案可能很大,请将最后的结果对 109+7 取模。
2 3
2
其中序列 [0,3] 和 [1,2] 满足条件
4 7
40
200 200
391022064
扫码备注加群即可,期待您的到来~
By signing up a CodeFun2000 universal account, you can submit code and join discussions in all online judging services provided by us.