如何计算a!/(b1! b2! ... bm!) modulo p,p素数在哪里?a和的阶乘b可能非常大(long long int不够),所以我需要传递到模。
a!/(b1! b2! ... bm!) modulo p
p
a
b
long long int
c++ algorithm factorial modulo number-theory
algorithm ×1
c++ ×1
factorial ×1
modulo ×1
number-theory ×1