#P539. 求组合数01
求组合数01
No testdata at current.
题目描述
输入n,m,请你计算C(n,m)%P的结果,其中P=1000000007.
输入输出说明
输入说明
输入有多组(不超过100000组),每组站一行,共两个数n,m,其中()
输出说明
对每组数据,输出一行为C(n,m)%P的结果
题目样例
输入样例
5 4
6 2
输出样例
5
15
数据说明
对于100%的数据, 。
No testdata at current.
输入n,m,请你计算C(n,m)%P的结果,其中P=1000000007.
输入有多组(不超过100000组),每组站一行,共两个数n,m,其中(1≤n,m≤1000000)
对每组数据,输出一行为C(n,m)%P的结果
5 4
6 2
5
15
对于100%的数据,1≤n,m≤1000000 。
By signing up a 西蒙科教 universal account, you can submit code and join discussions in all online judging services provided by us.