#P2386. 放苹果
放苹果
Description
Place identical apples into identical plates. Empty plates are allowed. How many different distributions are there? ( and are considered the same way.)
Input Format
The first line contains the number of testdata . Each of the following lines contains two integers and , separated by a space.
Output Format
For each pair and in the input, output the corresponding result on a single line.
1
7 3
8
3
3 2
4 3
2 7
2
4
2
Hint
For all testdata, it is guaranteed that , .
Translated by ChatGPT 5
京公网安备 11011102002149号