#2728. 求组合数1(模板)

求组合数1(模板)

Background

给定n组询问,每组询问给定两个整数a,ba, b,请你输出Cab mod 109+7C_{a}^{b} \space mod \space 10^9+7 的值

Input

第一行包含整数nn

接下来 nn 行,每行包含一组aabb

Output

nn行,每行输出一个询问的解。

Samples

3
3 1
5 3
2 2
3
10
1

Limitation

1n100001≤n≤10000,

1ab20001≤a≤b≤2000