![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
位运算
位运算专栏
ykycode
安徽大学计算机学硕。
两次获得大学生数学竞赛省一等奖,且排名前列。
蓝桥杯C++组省一、国三。
毕业曾被国家电网录用,热爱代码的心让我选择了一家上市公司的C++开发岗。
后来又转行Java开发。
展开
-
龟速乘与快速幂
龟速乘类似于快速幂。快速幂用乘法来实现乘方,龟速乘用加法来实现乘法。原创 2023-12-11 20:13:38 · 565 阅读 · 0 评论 -
快速幂模板
快速幂的迭代写法:typedef long long ll;ll pow_mod(ll a,ll b,ll m){ ll ans=1; while(b){ if(b&1) ans=ans*a%m; a=a*a%m; b>>=1; } return ans;}注意:快速幂模板输出结...原创 2017-10-02 23:57:38 · 207 阅读 · 0 评论 -
九度题目1442:A sequence of numbers
题目描述:Xinlv wrote some sequences on the paper a long time ago, they might be arithmetic or geometric sequences. The numbers are not very clear now, and only the first three numbers of each sequence原创 2017-09-20 10:25:50 · 416 阅读 · 0 评论