本题来源于:Educational Codeforces Round 80 (Rated for Div. 2) Problem C
输入两整数 、,求有多少对正整数序列 、 满足:
答案对 取模。
2 2
5
10 1
55
723 9
157557417
You are given two integers and . Calculate the number of pairs of arrays such that:
As the result can be very large, you should print it modulo .
The only line contains two integers and ( , ).
Print one integer – the number of arrays and satisfying the conditions described above modulo .
2 2
5
10 1
55
723 9
157557417
In the first test there are suitable arrays: