#t353. 放苹果

放苹果

Putting Apples

Problem Description

Put mm identical apples into nn identical plates, allowing some plates to be left empty. How many different ways are there? ((5,1,1)(5,1,1) and (1,1,5)(1,1,5) are considered the same way.)

Input Format

The first line is the number of test cases tt, and each of the following lines contains two integers mm and nn separated by a space.

Output Format

For each test case mm and nn 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: 1≤m,n≤101 \le m, n \le 10, 0≤t≤200 \le t \le 20.