时间限制:1 Sec
内存限制:128 MiB
提交:118
答案正确:16
Given n balls(each ball should be regard as same) and m boxes(each box is different with each other), now you need to divide the n balls into the m boxes, and each box contains at least one ball
Input starts with an integer T (≤ 10000), denoting the number of test cases. Each case contains two integers n,m (1 ≤ n, m ≤ 1000 and m <= n).
For each case, print the case number and your answer(mod 1000000007). Each case for one line.
2 1 1 3 2
Case 1: 1 Case 2: 2
[NBUT]Alex