会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
冷松
Powered by
博客园
博客园
|
首页
|
新随笔
|
联系
|
订阅
|
管理
2019年8月2日
十进制快速幂
摘要: 给你一个大数n,求2的n次幂; 由于n很大,用普通的快速幂已经不能够很快的算出了,因为不好判断奇偶以及除2这些,不过不过用十进制快速幂求普通的ll及int型数也很快;
阅读全文
posted @ 2019-08-02 19:36 冷松
阅读(151)
评论(0)
推荐(0)
编辑
用唯一分解定理求m/n
摘要: 用唯一分解定理求m/n,保证m能够被n整除; 这其中用到了素数筛以及快速幂
阅读全文
posted @ 2019-08-02 18:48 冷松
阅读(932)
评论(0)
推荐(0)
编辑
map用法
摘要: #include using namespace std; struct node{ int x,y; bool operator Map; node temp; temp.x=1,temp.y=1; Map[temp]=1; cout<<Map[temp]<<endl; temp.x=2; cout<<Map[temp]<<end...
阅读全文
posted @ 2019-08-02 10:46 冷松
阅读(112)
评论(0)
推荐(0)
编辑