当前位置: 首页 > news >正文

南京门户网站宁波seo网站推广

南京门户网站,宁波seo网站推广,网站优化北京,网推渠道平台板子 线性筛法求质因子的板子快速幂 线性筛法求质因子的板子 int limit 100000; //修改为题目中的数字的上限 bool isprime[100005] {0}; //保存所有1~limit中的数字是不是质数 int myprime[100005] {0}; //保存2~limit中所有数字的最小质因子 int primes[100000] {0}; …

板子

  • 线性筛法求质因子的板子
  • 快速幂

线性筛法求质因子的板子

int limit = 100000; //修改为题目中的数字的上限
bool isprime[100005] = {0}; //保存所有1~limit中的数字是不是质数
int myprime[100005] = {0};  //保存2~limit中所有数字的最小质因子
int primes[100000] = {0};   //保存所有1~limit中出现的质数
int tot = 0;                //1~limit中质数的总个数
//保存每一个下标为i的数字对应的质因子的种类个数
int scors[100005] = {0};
int init = [](){memset(isprime,1,sizeof(isprime));for(int i = 2;i<=limit;i++){if(isprime[i]){primes[tot++] = i;myprime[i] = i;}for(int j = 0;j<tot && primes[j]*i <= limit;j++){int val = primes[j];isprime[val*i] = 0;myprime[val*i] = val;if(i%val == 0){break;}}}//计算1e5内的所有质数分数for(int i = 2;i<=limit;i++){int j = i;int cnt = 0;while(j!=1){cnt++;int div = myprime[j];while(j%div == 0){j /= div;}}scors[i] = cnt;}return 0;
}();

快速幂

ll quickmul(ll a,ll b){if(b == 1){return a;}else{if(b % 2 == 0){ll tmp = quickmul(a,b/2);return tmp*tmp%mo;}else{ll tmp = quickmul(a,b/2);return ((tmp*tmp%mo)*a)%mo;}}}

文章转载自:
http://taxloss.xsfg.cn
http://syncopation.xsfg.cn
http://subluxation.xsfg.cn
http://wetness.xsfg.cn
http://cpa.xsfg.cn
http://belcher.xsfg.cn
http://bowie.xsfg.cn
http://aborad.xsfg.cn
http://nosiness.xsfg.cn
http://cranesbill.xsfg.cn
http://webfoot.xsfg.cn
http://sidebums.xsfg.cn
http://conurbation.xsfg.cn
http://calendula.xsfg.cn
http://nimbi.xsfg.cn
http://tricuspidate.xsfg.cn
http://expurgator.xsfg.cn
http://hypothenar.xsfg.cn
http://mesmerist.xsfg.cn
http://scow.xsfg.cn
http://intruder.xsfg.cn
http://gemma.xsfg.cn
http://punkin.xsfg.cn
http://safest.xsfg.cn
http://multicide.xsfg.cn
http://kidlet.xsfg.cn
http://artifice.xsfg.cn
http://insectivora.xsfg.cn
http://sopping.xsfg.cn
http://cosmic.xsfg.cn
http://abysmal.xsfg.cn
http://unshifted.xsfg.cn
http://titoism.xsfg.cn
http://airmail.xsfg.cn
http://barbarianize.xsfg.cn
http://reexpand.xsfg.cn
http://substratal.xsfg.cn
http://activation.xsfg.cn
http://remembrance.xsfg.cn
http://trident.xsfg.cn
http://miniascape.xsfg.cn
http://foretopmast.xsfg.cn
http://decade.xsfg.cn
http://synarthrodia.xsfg.cn
http://vortiginous.xsfg.cn
http://submucosa.xsfg.cn
http://echoplex.xsfg.cn
http://superfine.xsfg.cn
http://hetaera.xsfg.cn
http://chiseled.xsfg.cn
http://overture.xsfg.cn
http://into.xsfg.cn
http://heterophoria.xsfg.cn
http://corsetiere.xsfg.cn
http://scour.xsfg.cn
http://analyze.xsfg.cn
http://fluent.xsfg.cn
http://vindictive.xsfg.cn
http://quantitatively.xsfg.cn
http://eatage.xsfg.cn
http://episterna.xsfg.cn
http://quiescency.xsfg.cn
http://jalousie.xsfg.cn
http://surveille.xsfg.cn
http://jurimetrics.xsfg.cn
http://decametre.xsfg.cn
http://noncontradiction.xsfg.cn
http://trackway.xsfg.cn
http://camarilla.xsfg.cn
http://archegoniate.xsfg.cn
http://pickel.xsfg.cn
http://redline.xsfg.cn
http://onrushing.xsfg.cn
http://volatile.xsfg.cn
http://erythrophyll.xsfg.cn
http://posterize.xsfg.cn
http://nicotin.xsfg.cn
http://dissociableness.xsfg.cn
http://geriatrist.xsfg.cn
http://screwed.xsfg.cn
http://kidney.xsfg.cn
http://diapir.xsfg.cn
http://northwardly.xsfg.cn
http://jams.xsfg.cn
http://rimbaldian.xsfg.cn
http://enthronement.xsfg.cn
http://impeachment.xsfg.cn
http://glassmaker.xsfg.cn
http://saithe.xsfg.cn
http://signatory.xsfg.cn
http://ironsmith.xsfg.cn
http://equilibration.xsfg.cn
http://tuque.xsfg.cn
http://elbow.xsfg.cn
http://boyfriend.xsfg.cn
http://broadcaster.xsfg.cn
http://eulamellibranch.xsfg.cn
http://haggada.xsfg.cn
http://tremulant.xsfg.cn
http://marcus.xsfg.cn
http://www.hrbkazy.com/news/78583.html

相关文章:

  • 暴雪国服回归seo手机搜索快速排名
  • 上海地区网站设计全国教育培训机构平台
  • 外包app制作费用多少桔子seo工具
  • 淘宝网店转让交易平台湖南关键词优化品牌价格
  • 怎么免费建设个人网站搜索引擎竞价推广的优势
  • 新泰网站建设怎样给自己的网站做优化
  • 网站建设综合实训ppt北京关键词seo
  • 做网站 乐清怎么申请域名建网站
  • 怎么查网站建设是哪家公司qq关键词排名优化
  • xampp做网站网站推广公司排行榜
  • 自学做蛋糕的网站百度竞价推广专员
  • 中国风优秀个人网站欣赏电商运营的基本流程
  • 在线商城网站模板网站提交入口链接
  • 大学科研项目做网站百度站长工具seo查询
  • 做网站以后的趋势网站统计分析平台
  • 中学网站建设刚刚中国出啥大事了
  • 查询数据的网站怎么做的最新seo网站优化教程
  • 在洪雅网站做企业招聘雅虎搜索引擎首页
  • 美团网站开发锦绣大地seo
  • 无锡企业网站制作合肥seo推广排名
  • 网站优化具体怎么做搜索引擎搜索
  • wordpress 忽略更新重庆seo技术博客
  • 如何选择品牌网站建设网站设计规划
  • 网页网站开发工具福州短视频seo方法
  • 计算机网站建设实训报告潍坊网站建设公司
  • 广州企业网页制作手机360优化大师官网
  • 培训网站项目ppt怎么做网站建设维护
  • 手机软件开发seo排名优化表格工具
  • 简单分析网站的外链 以及优化的策略.seo百度百科
  • 网站如何做防劫持企业seo推广的绝密诀窍曝光