{
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.htmlI hope it can help you: https://blog.csdn.net/it_xiangqiang/category_10768339.html