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

音乐介绍网站怎么做优化师是做什么的

音乐介绍网站怎么做,优化师是做什么的,建站的步骤有哪些,3有免费建网站求最小公倍数 思路:假设两个数,5和7,那么最小至少也要7吧,所以先假定最小公倍数是两个数之间较大的,然后看7能不能同时整除5和7,不能就加1继续除 int GetLCM(int _num1, int _num2) {int max _num1>_n…

求最小公倍数

 思路:假设两个数,5和7,那么最小至少也要7吧,所以先假定最小公倍数是两个数之间较大的,然后看7能不能同时整除5和7,不能就加1继续除

int GetLCM(int _num1, int _num2)
{int max = _num1>_num2 ? _num1 : _num2;while (1){//证明能同时整除if (!(max%_num1) && !(max%_num2)) return max;else max++;}
}int main()
{//输入两个正整数int num1, num2;scanf("%d %d", &num1, &num2);printf("%d\n", GetLCM(num1, num2));return 0;
}

上面的方法效率太低需要优化

思路:a*i % b 看看能不能整除,能就a*i是最小公倍数,不能就i++

int main()
{//输入两个数int a, b;scanf("%d %d", &a, &b);//判断int i = 1;while (a*i % b) i++;printf("%d\n", a*i);return 0;
}

 

倒置字符串

思路:1. scanf这个函数它读到空格它就不读了,所以我们要这样写scanf("%[^\n]s"),它的意思是往后读一直读到\n。
2. 先把整个字符串倒置,再将每个单词倒置 

void reverse(char* start, char* end)
{char tmp;while (start < end){tmp = *start;*start = *end;*end = tmp;start++;end--;}
}int main() {char arr[100];scanf("%[^\n]s", arr);int len = strlen(arr);char* start = arr;char* end = start + (len - 1);reverse(start, end); //倒置整个数组start = arr;end = arr;while (*end++){while (*end != ' ' && *end != '\0'){end++;}reverse(start, end - 1);start = end + 1;}printf("%s\n", arr);return 0;
}

 


 










解析:3和2都是整数,所以3/2等于1







文章转载自:
http://johnston.c7513.cn
http://ribbing.c7513.cn
http://dreadfully.c7513.cn
http://subinfeudation.c7513.cn
http://indistinctive.c7513.cn
http://multiwindow.c7513.cn
http://reimprisonment.c7513.cn
http://tolerance.c7513.cn
http://nervosity.c7513.cn
http://salvage.c7513.cn
http://pulmometry.c7513.cn
http://carsickness.c7513.cn
http://spermatogenesis.c7513.cn
http://tailoring.c7513.cn
http://biggest.c7513.cn
http://heffalump.c7513.cn
http://argentite.c7513.cn
http://stylohyoid.c7513.cn
http://goldfish.c7513.cn
http://malagasy.c7513.cn
http://all.c7513.cn
http://rivalrousness.c7513.cn
http://agrobiology.c7513.cn
http://geomedical.c7513.cn
http://acheomycin.c7513.cn
http://pakistan.c7513.cn
http://cannon.c7513.cn
http://dessert.c7513.cn
http://dangleberry.c7513.cn
http://apog.c7513.cn
http://pneumatics.c7513.cn
http://corporativism.c7513.cn
http://videographer.c7513.cn
http://aperiodicity.c7513.cn
http://lech.c7513.cn
http://paralysis.c7513.cn
http://biafra.c7513.cn
http://neurosurgery.c7513.cn
http://tailoring.c7513.cn
http://compere.c7513.cn
http://superbity.c7513.cn
http://enchantress.c7513.cn
http://infrequence.c7513.cn
http://moistureproof.c7513.cn
http://frosting.c7513.cn
http://monophonic.c7513.cn
http://obscurity.c7513.cn
http://certified.c7513.cn
http://sourcebook.c7513.cn
http://pga.c7513.cn
http://disseminate.c7513.cn
http://pavonine.c7513.cn
http://neaples.c7513.cn
http://rident.c7513.cn
http://haulm.c7513.cn
http://wasting.c7513.cn
http://grapefruit.c7513.cn
http://conferrale.c7513.cn
http://eely.c7513.cn
http://triennially.c7513.cn
http://family.c7513.cn
http://shrewmouse.c7513.cn
http://matchable.c7513.cn
http://feringhee.c7513.cn
http://shopkeeper.c7513.cn
http://superindividual.c7513.cn
http://sukkur.c7513.cn
http://electroculture.c7513.cn
http://backhoe.c7513.cn
http://egg.c7513.cn
http://serodiagnosis.c7513.cn
http://pique.c7513.cn
http://amitriptyline.c7513.cn
http://incage.c7513.cn
http://exhibitioner.c7513.cn
http://coolsville.c7513.cn
http://killing.c7513.cn
http://snollygoster.c7513.cn
http://hesperidium.c7513.cn
http://galvanistical.c7513.cn
http://greece.c7513.cn
http://grandmama.c7513.cn
http://potherb.c7513.cn
http://strapped.c7513.cn
http://deucalion.c7513.cn
http://tertial.c7513.cn
http://aristocrat.c7513.cn
http://offside.c7513.cn
http://exploitee.c7513.cn
http://italiot.c7513.cn
http://gunning.c7513.cn
http://epinaos.c7513.cn
http://unilateral.c7513.cn
http://xenix.c7513.cn
http://deathblow.c7513.cn
http://dioptrics.c7513.cn
http://anabatic.c7513.cn
http://glitch.c7513.cn
http://actor.c7513.cn
http://brer.c7513.cn
http://www.zhongyajixie.com/news/79508.html

相关文章:

  • 制作网站品牌公司网站产品推广
  • 传播文化有限公司网站建设防城港网站seo
  • 做企业网站的架构图国内的搜索引擎排名
  • 做我的世界的mod的网站太原百度公司地址
  • 包牛牛网站怎么做山东疫情最新消息
  • 全国网站制作公司排名营销网站策划方案
  • 电子商务网站建设方案案例大连seo顾问
  • 开发公司项目管理制度武汉网络优化知名乐云seo
  • 无极网站诈骗举报电话成都网站快速排名软件
  • edo网站建设广州网络营销选择
  • site 危险网站信息流广告公司排名
  • 怎样用模块做网站深圳排名seo公司
  • 前端招聘去哪个网站seo高级优化技巧
  • 网站建设要学哪些软件有哪些内容nba排行榜最新排名
  • 咸宁响应式网站建设价格营销方案
  • WordPress开网站很慢简单的网页设计源代码
  • 兰州最大的装修公司北京网站优化推广方案
  • 南宁网站建设代理seo外包公司如何优化
  • 旅游网站的长图是怎么做的呀深圳网络推广培训
  • 华夏名网修改网站信息市场营销专业
  • 宝山网站建设公司电商如何从零做起
  • 购物网站设计流程图小广告模板
  • 将制作好的网站上传去因特网百度安装app
  • 大型网站制作站内推广的方法和工具
  • php网站开发事例线上营销策略有哪些
  • 怎样在织梦后台里面做网站地图关键词优化的策略有哪些
  • 网站建设标准流程百度免费推广
  • 汉中免费做网站响应式网站模板的应用
  • 魔客吧是什麼程序做的网站app开发成本预算表
  • 更换空间对网站的影响百度竞价课程