#Q230. 「一本通 6.6 例 3」组合
「一本通 6.6 例 3」组合
Description
The combinatorial number represents the number of ways to choose elements from a set of elements. For example, and . However, when and are relatively large, becomes very large. Therefore, xiaobo asks you to output the value of .
Input Format
The first line of input is a positive integer , representing the number of test cases;
Next, there are test cases, each consisting of three positive integers .
Output Format
For each test case, output a positive integer representing the result of .
Sample 1
2
5 2 3
5 2 61
1
10
Data Range and Hints
For all data, , , , , and is a prime number.