calculate nCr mod M where M is a product of prime numbers

后端 未结 0 1470
情话喂你
情话喂你 2020-12-28 20:43

I need to calculate nCr mod M, where M is a product of prime numbers and n and r can be very large (~10^8). I tried to write n!, (n-r)! and r

相关标签:
回答
  • 消灭零回复
提交回复
热议问题