摘要:
快速幂(所有可能溢出的地方都要mod) 递归写法 几点注意事项:1、temp在里面要先算出来一半再temp*temp,不然两次进循环复杂度增加 2、%m不要忘了写 #include<stdio.h> #include<iostream> #include<string.h> using namesp 阅读全文
摘要:
快速幂(所有可能溢出的地方都要mod) 递归写法 几点注意事项:1、temp在里面要先算出来一半再temp*temp,不然两次进循环复杂度增加 2、%m不要忘了写 #include<stdio.h> #include<iostream> #include<string.h> using namesp 阅读全文
|