#t353. 放苹果
放苹果
Putting Apples
Problem Description
Put identical apples into identical plates, allowing some plates to be left empty. How many different ways are there? ( and are considered the same way.)
Input Format
The first line is the number of test cases , and each of the following lines contains two integers and separated by a space.
Output Format
For each test case and in the input, output the corresponding result on one line.
Sample Input
1
7 3
Sample Output
8
Sample Input 2
3
3 2
4 3
2 7
Sample Output 2
2
4
2
Hint
For all data, it is guaranteed that: , .