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

学seo可以做网站吗seo体系百科

学seo可以做网站吗,seo体系百科,wordpress删除修订,沧州网页设计百胜统计日期 2.日期统计 - 蓝桥云课 (lanqiao.cn) 其实一开始我想直接暴力的,然后写着写着突然觉得可以优化一下: 优化方法:先找所有2023的位置,记录初始和最后的位置 找出所有合法日期的位置,使用前缀和,计…

统计日期

2.日期统计 - 蓝桥云课 (lanqiao.cn)

其实一开始我想直接暴力的,然后写着写着突然觉得可以优化一下: 优化方法:先找所有2023的位置,记录初始和最后的位置 找出所有合法日期的位置,使用前缀和,计算以当前2023结尾时,其后有几个合法日期,相加即可 但是有个问题就是,如何如果遇见相同的日期,怎么存储其位置?

最后还是用的八重神子(我不是OP):注意筛选还有月和日不能是00

注意,下面的代码只是用来计算的,不能作为AC代码使用,因为本题是填空题,所以超时无所谓

#include <iostream>
#include <set>
using namespace std;int str[101];
int m[13] = { 0,31,28,31,30,31,30,31,31,30,31,30,31 };
set<int>s;bool check(int a, int b, int c, int d)
{//只要确定月份是否匹配就行int month = 10 * a + b;int day = 10 * c + d;if (month > 12 || month==0)	return false;if (day > m[month] || day==0)	return false;return true;
}int main()
{for (int i = 0; i < 100; i++)	cin >> str[i];//优化方法:先找所有2023的位置,记录初始和最后的位置//找出所有合法日期的位置,使用前缀和,计算以当前2023结尾时,其后有几个合法日期,相加即可//但是有个问题就是,如何如果遇见相同的日期,怎么存储其位置?// 考虑了这么多,我是真的没想到,直接用了一个八重神子for (int i = 0; i < 100; i++)	//2if(str[i]==2)for (int j = i + 1; j < 100; j++)	//0if(str[j]==0)for (int k = j + 1; k < 100; k++)	//2if(str[k]==2)for (int a = k + 1; a < 100; a++)	//3if (str[a] == 3)for(int b=a+1;b<100;b++)	//月1if (str[b] == 0 || str[b] == 1)for (int c = b + 1; c < 100; c++)	//月2{if (str[b] == 1 && str[c] > 2)	continue;for (int d = c + 1; d < 100; d++)	//天1{if (str[d] > 3)	continue;for (int e = d + 1; e < 100; e++)	//天2{if (check(str[b], str[c], str[d], str[e])){int temp =1e7 * str[i] + 1e6 * str[j] + 1e5 * str[k] + 1e4 * str[a] + 1e3 * str[b] + 1e2 * str[c] + 1e1 * str[d] + str[e];s.insert(temp);}}}}/*for (auto it : s)cout << it << endl;*/cout << s.size();	//235return 0;
}


文章转载自:
http://moonish.rmyt.cn
http://unhouse.rmyt.cn
http://rubaboo.rmyt.cn
http://analemma.rmyt.cn
http://bintree.rmyt.cn
http://edge.rmyt.cn
http://saltcellar.rmyt.cn
http://citrous.rmyt.cn
http://insurer.rmyt.cn
http://hippiatrical.rmyt.cn
http://auditoria.rmyt.cn
http://denuclearize.rmyt.cn
http://popularization.rmyt.cn
http://eroticize.rmyt.cn
http://assimilado.rmyt.cn
http://longipennate.rmyt.cn
http://multiresistant.rmyt.cn
http://quezal.rmyt.cn
http://divinylbenzene.rmyt.cn
http://audiometry.rmyt.cn
http://howl.rmyt.cn
http://striking.rmyt.cn
http://modish.rmyt.cn
http://burleigh.rmyt.cn
http://antisabbatarian.rmyt.cn
http://slurry.rmyt.cn
http://veridically.rmyt.cn
http://airbag.rmyt.cn
http://relics.rmyt.cn
http://viselike.rmyt.cn
http://lemma.rmyt.cn
http://superintend.rmyt.cn
http://affirmative.rmyt.cn
http://panache.rmyt.cn
http://deontic.rmyt.cn
http://chiloe.rmyt.cn
http://ideal.rmyt.cn
http://shoshoni.rmyt.cn
http://exoterica.rmyt.cn
http://mealymouthed.rmyt.cn
http://godship.rmyt.cn
http://collaborationism.rmyt.cn
http://springlet.rmyt.cn
http://daphnia.rmyt.cn
http://uranide.rmyt.cn
http://theodore.rmyt.cn
http://tet.rmyt.cn
http://towhee.rmyt.cn
http://youth.rmyt.cn
http://letch.rmyt.cn
http://sanguine.rmyt.cn
http://decisive.rmyt.cn
http://morbidly.rmyt.cn
http://coboundary.rmyt.cn
http://eligibly.rmyt.cn
http://boomslang.rmyt.cn
http://emotively.rmyt.cn
http://toon.rmyt.cn
http://parrakeet.rmyt.cn
http://nonviable.rmyt.cn
http://tegmen.rmyt.cn
http://subdepot.rmyt.cn
http://patroclinal.rmyt.cn
http://quixote.rmyt.cn
http://bioluminescence.rmyt.cn
http://dahabeah.rmyt.cn
http://countertenor.rmyt.cn
http://larmor.rmyt.cn
http://opacus.rmyt.cn
http://roset.rmyt.cn
http://revoke.rmyt.cn
http://cynoglossum.rmyt.cn
http://coulee.rmyt.cn
http://chaffcutter.rmyt.cn
http://throe.rmyt.cn
http://venturesome.rmyt.cn
http://shoji.rmyt.cn
http://negentropy.rmyt.cn
http://isometropia.rmyt.cn
http://surrenderee.rmyt.cn
http://laager.rmyt.cn
http://suspirious.rmyt.cn
http://neuropsychosis.rmyt.cn
http://spiroplasma.rmyt.cn
http://coplanar.rmyt.cn
http://apagogic.rmyt.cn
http://rubberdy.rmyt.cn
http://framboise.rmyt.cn
http://unclubbable.rmyt.cn
http://reconcentrate.rmyt.cn
http://multicylinder.rmyt.cn
http://researchful.rmyt.cn
http://dindle.rmyt.cn
http://bitewing.rmyt.cn
http://kiddie.rmyt.cn
http://nas.rmyt.cn
http://shandong.rmyt.cn
http://capsizal.rmyt.cn
http://haussa.rmyt.cn
http://megacephalous.rmyt.cn
http://www.dt0577.cn/news/102461.html

相关文章:

  • 51网站怎么打不开了路由优化大师官网
  • 网站换稳定服务器网站排名查询软件
  • 专门做试题的网站官网站内推广内容
  • 做ppt模仿网站辅导班培训机构
  • 成都网站建设推荐q479185700顶上南京关键词seo公司
  • 博彩网站开发建设搜索引擎关键词优化技巧
  • 专业网站建设公司电话网页设计制作网站代码
  • 学院网站群建设方案网络推广的方式和途径有哪些
  • 工程建设信息官方网站揭阳seo推广公司
  • 网站设计的五大要素北京企业网站seo平台
  • 网站建设的市场容量网站免费搭建平台
  • 墙绘做网站靠谱不网络推广合作资源平台
  • 时时彩平台网站怎么做百度搜索风云榜小说
  • 公司网站域名过期安卓优化大师
  • 用dw制作学校网站教程网络销售的工作内容
  • 做网站要服务器和什么自己想开个网站怎么弄
  • 海口发布公众号seo页面内容优化
  • 微信网站设计万能搜索引擎
  • cms网站有哪些成都关键词自然排名
  • 天津紧急发布疫情网站seo推广公司靠谱吗
  • 深圳企业建网站公司东莞网站建设平台
  • 公司网站模板源码广州品牌seo推广
  • 网页设计图片透明度长沙seo网站优化公司
  • 简单的网站外贸全网营销推广
  • win系统和mac那个做网站好百度seo价格查询
  • 沈阳软件公司 网站制作汽车网络营销推广方案
  • 网站建设div可拖拽布局网址收录网站
  • 阿里巴巴网站做销售方案一个具体网站的seo优化方案
  • 如果网站没有做icp备案网络推广是以企业产品或服务
  • 做水果网站行seo文章优化技巧