如果一个序列满足序列长度为
对于一个序列
两个序列
给出
输入格式
一行两个正整数
输出格式
一行一个整数,表示有多少种不同构的挺好序列。
样例一
input
3 2
output
4
explanation
一共
样例二
input
8 5
output
1341
样例三
input
100000 99999
output
944488805
样例四
input
300 200
output
430256456
样例五
input
2000 1000
output
267823945
样例六
input
100000 50000
output
779381353
限制与约定
子任务 | 特殊性质 | 分值 | |
---|---|---|---|
1 | |||
2 | |||
3 | |||
4 | |||
5 |
时间限制:
空间限制: