Binomial coefficients 1
Easy
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Let be a non-negative integer. Let and
You are given the numbers and . Calculate .
Input
The first line contains the number of test cases . Each of the next lines contains two integers and .
Output
Print lines, each contains the value for corresponding test.
Examples
Input #1
Answer #1
Submissions 8K
Acceptance rate 14%