Home > Back-end >  The results of the fast power modulus? Modulus of result mean?
The results of the fast power modulus? Modulus of result mean?

Time:06-03

Int PowerMod (int a, b int, int) c
{
Int ans=1;
A=a % c;
While (b> 0)
{

If (% 2 b==1)
Ans=% c (ans * a);
B=b/2;
A=(a * a) % c;
}
return ans;
}
What ans said the results of a of b power results how to say?

CodePudding user response:

I hope it can help you: https://blog.csdn.net/it_xiangqiang/category_10581430.html
I hope it can help you: https://blog.csdn.net/it_xiangqiang/category_10768339.html
  • Related