taking mod from every iteration in factorial computing in c++ to not get a number overflow

前端 未结 0 555
一向
一向 2021-02-06 17:21

So, I\'m now learning competitive programming, and the topic was "modular arithmetic". It\'s said that you can use (a*b) % c = ((a % c) * (b % c)) % c and the book tel

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