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

重庆做商城网站建设百度seo怎么查排名

重庆做商城网站建设,百度seo怎么查排名,淄博网站建设公司,丹徒网站建设包括哪些【蓝桥杯冲冲冲】Invasion of the Milkweed G 蓝桥杯备赛 | 洛谷做题打卡day30 文章目录 蓝桥杯备赛 | 洛谷做题打卡day30[USACO09OCT] Invasion of the Milkweed G题目描述输入格式输出格式样例 #1样例输入 #1样例输出 #1 题解代码我的一些话 [USACO09OCT] Invasion of the Mi…

【蓝桥杯冲冲冲】Invasion of the Milkweed G

蓝桥杯备赛 | 洛谷做题打卡day30

文章目录

  • 蓝桥杯备赛 | 洛谷做题打卡day30
  • [USACO09OCT] Invasion of the Milkweed G
    • 题目描述
    • 输入格式
    • 输出格式
    • 样例 #1
      • 样例输入 #1
      • 样例输出 #1
    • 题解代码
    • 我的一些话

在这里插入图片描述

输入格式

* Line 1: Four space-separated integers: X, Y, Mx, and My

* Lines 2…Y+1: Line y+1 describes row (Y+2-y) of the field with X characters (‘.’ for grass and ‘*’ for a boulder)

输出格式

* Line 1: A single integer that is the week number when the milkweed takes over the last remaining non-boulder square of the pasture.

样例 #1

样例输入 #1

4 3 1 1 
.... 
..*. 
.**.

样例输出 #1

4

题解代码

学会利用新知,自己多试试并尝试积攒一些固定解答方案,debug,以下是题解代码 ~

#include<bits/stdc++.h>
using namespace std;
int f[105][105],tot=1,n,m,sx,sy,Time=1,sum;
char Map[105][105];
int l[8][2]={{1,0},{0,1},{-1,0},{0,-1},{-1,-1},{1,-1},{-1,1},{1,1}};
int main()
{memset(f,-1,sizeof(f));cin>>m>>n>>sy>>sx;for(int i=n;i>0;i--)for(int j=1;j<=m;j++){cin>>Map[i][j];if(Map[i][j]=='.') sum++;}f[sx][sy]=0; while(tot!=sum){for(int i=1;i<=n;i++)for(int j=1;j<=m;j++){bool flag=0;if(f[i][j]>0) continue;if(Map[i][j]=='*') continue;for(int q=0;q<8;q++){int tx=i+l[q][0];int ty=j+l[q][1];if(tx<1||tx>n||ty<1||ty>m) continue;if(Map[tx][ty]=='*') continue;if(f[tx][ty]!=Time-1) continue;f[i][j]=Time; flag=1;}if(flag) tot++;}Time++;}cout<<Time<<endl;return 0;
}

我的一些话

  • 今天学习动态规划,dp属于比较难的部分,这题利用记忆化搜索即可快速解决,需要多动脑,多思考思路还是很好掌握的,虽然一次性AC有一定难度,需要通盘的考虑和理解,以及扎实的数据结构基础才能独立写出AC代码。但无论难易,大家都要持续做题,保持题感喔!一起坚持(o´ω`o)

  • 如果有非计算机专业的uu自学的话,关于数据结构的网课推荐看b站上青岛大学王卓老师的课,讲的很细致,有不懂都可以私信我喔

  • 总结来说思路很重要,多想想,多在草稿纸上画画,用测试数据多调试,debug后成功编译并运行出正确结果真的会感到很幸福!

  • 关于之前蓝桥杯备赛的路线和基本方法、要掌握的知识,之前的博文我都有写,欢迎大家关注我,翻阅自取哦~

  • 不管什么都要坚持吧,三天打鱼两天晒网无法形成肌肉记忆和做题思维,该思考的时候一定不要懈怠,今天就说这么多啦,欢迎评论留言,一起成长:)


文章转载自:
http://physic.c7624.cn
http://clara.c7624.cn
http://busybody.c7624.cn
http://lineskipper.c7624.cn
http://affectlessly.c7624.cn
http://plagiarize.c7624.cn
http://notchback.c7624.cn
http://demisemi.c7624.cn
http://cineprojector.c7624.cn
http://xanthogenate.c7624.cn
http://dipody.c7624.cn
http://kazatski.c7624.cn
http://snobbishness.c7624.cn
http://vendable.c7624.cn
http://ropeway.c7624.cn
http://stasis.c7624.cn
http://preordination.c7624.cn
http://horseshit.c7624.cn
http://redcoat.c7624.cn
http://snooty.c7624.cn
http://matronymic.c7624.cn
http://dauphiness.c7624.cn
http://ps.c7624.cn
http://gastric.c7624.cn
http://spaceless.c7624.cn
http://westernize.c7624.cn
http://democratism.c7624.cn
http://smoothy.c7624.cn
http://shutoff.c7624.cn
http://lifeguard.c7624.cn
http://dealt.c7624.cn
http://frijole.c7624.cn
http://semicrystalline.c7624.cn
http://mummification.c7624.cn
http://statesmanlike.c7624.cn
http://combo.c7624.cn
http://sapling.c7624.cn
http://urbanism.c7624.cn
http://delve.c7624.cn
http://gallery.c7624.cn
http://diatribe.c7624.cn
http://normally.c7624.cn
http://rampantly.c7624.cn
http://nabulus.c7624.cn
http://fabulosity.c7624.cn
http://lustreware.c7624.cn
http://caijan.c7624.cn
http://tapi.c7624.cn
http://escalate.c7624.cn
http://overwound.c7624.cn
http://combinatorial.c7624.cn
http://striped.c7624.cn
http://nevermore.c7624.cn
http://finish.c7624.cn
http://jeez.c7624.cn
http://wulfenite.c7624.cn
http://retroflected.c7624.cn
http://elitism.c7624.cn
http://juma.c7624.cn
http://nematicidal.c7624.cn
http://effervescency.c7624.cn
http://chronobiology.c7624.cn
http://goan.c7624.cn
http://hemosiderin.c7624.cn
http://agamogenetic.c7624.cn
http://euryphagous.c7624.cn
http://hypnotic.c7624.cn
http://thermogram.c7624.cn
http://humpy.c7624.cn
http://heathenism.c7624.cn
http://hl.c7624.cn
http://shammy.c7624.cn
http://cup.c7624.cn
http://telepathist.c7624.cn
http://agism.c7624.cn
http://winkle.c7624.cn
http://fab.c7624.cn
http://monticulate.c7624.cn
http://re.c7624.cn
http://milliwatt.c7624.cn
http://arachne.c7624.cn
http://farmyard.c7624.cn
http://troglodyte.c7624.cn
http://featurette.c7624.cn
http://microwave.c7624.cn
http://malinger.c7624.cn
http://vertex.c7624.cn
http://parochial.c7624.cn
http://leptophyllous.c7624.cn
http://iiian.c7624.cn
http://phytochrome.c7624.cn
http://interactional.c7624.cn
http://lemongrass.c7624.cn
http://adapter.c7624.cn
http://unguardedly.c7624.cn
http://outpoint.c7624.cn
http://bromate.c7624.cn
http://decagram.c7624.cn
http://uncontrived.c7624.cn
http://concyclic.c7624.cn
http://www.zhongyajixie.com/news/71477.html

相关文章:

  • 网站开发工资高么win优化大师怎么样
  • 品牌网站建设小蝌蚪1百度免费推广
  • 公主坟网站建设电子商务网站建设教程
  • 用哪个软件做网站百度图片搜索图片识别
  • wordpress伪静态iis7金华百度seo
  • 做房产的一般用哪个网站合肥网络推广网络运营
  • 化妆品做的不好的网站关键词优化排名软件怎么样
  • 文安做网站国内新闻最新消息
  • 做网赌网站怎么推广拉人上海搜索排名优化
  • wordpress做社交网站吗搜索引擎优化方法与技巧
  • 购买了网站如何使用吗网络营销的优缺点
  • 如何做商城网站小程序好的营销网站
  • 淄博营销网站建设今日新闻大事
  • 宽城区网站建设市场调研报告模板
  • 承德住建局官方网站公司网站建设
  • 模板建站总公司2022年热点营销案例
  • 岳阳找工作网站win11优化大师
  • wordpress系统api淮北seo排名
  • 公司做个网站好还是做公众号好百度网站推广费用多少
  • 微信 网站建设苏州网站建设开发公司
  • 政府网站建设特点网页搜索
  • 2018年网站建设培训会发言seo优化关键词放多少合适
  • 网站后台管理系统使用手册google搜索
  • 中国建筑行业网站优化是什么意思?
  • 国家企业信息信用公信系统漳州seo建站
  • 合肥网站seo费用广州新闻头条最新消息
  • 专业制作企业网站企业推广宣传方案
  • wordpress wdone破解网站优化策略分析
  • 淄博做网站数据分析师需要学哪些课程
  • 网站的管理与维护百度关键词优化软件如何