#2678. 求组合数1(模板)
求组合数1(模板)
Background
给定n组询问,每组询问给定两个整数,请你输出的值
Input
第一行包含整数。
接下来 行,每行包含一组和。
Output
共行,每行输出一个询问的解。
Samples
3
3 1
5 3
2 2
3
10
1
Limitation
,
给定n组询问,每组询问给定两个整数a,b,请你输出Cab mod 109+7的值
第一行包含整数n。
接下来 n 行,每行包含一组a和b。
共n行,每行输出一个询问的解。
3
3 1
5 3
2 2
3
10
1
1≤n≤10000,
1≤a≤b≤2000
By signing up a 黑猫OJ universal account, you can submit code and join discussions in all online judging services provided by us.