摘要: Big Number Problem Description As we know, Big Number is always troublesome. But it's really important in our ACM. And today, your task is to write a 阅读全文
posted @ 2020-02-20 16:53 HickeyZhang 阅读(204) 评论(0) 推荐(0)
摘要: 1.普通的求幂方法: 时间复杂度为O(n),对于比较大的数在1s限时内可能会TLE int pow(int base,int p){ int ans=1; for(int i=1;i<=p;i++) ans*=base; return ans; } 2.快速幂: 时间复杂度为logn (1)结合位运 阅读全文
posted @ 2020-02-20 15:46 HickeyZhang 阅读(335) 评论(0) 推荐(0)