Put M identical
apples on N identical plates, allow some plates to be left empty. how many
different methods are there? (indicated by K).
Notice that 5,1,1
and 1,5,1 are the same method.
The first line is
the number t of test data (0 <= t <= 20). Each of the following t lines
contains two integers M and N separated by space. 1<=M, N<=10.
For each set of
data M and N entered, output the corresponding K in one line.
1
7 3
8