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

去哪个网站找做贷款的靠谱制作一个简单的网站

去哪个网站找做贷款的靠谱,制作一个简单的网站,怎么做自己的网站免费,密云做网站的题目分析 1.双重bfs,遍历两个起点求最短路再计算总和即可 2.唯一的坑点在于对于一个KFC&#xff0c;两人中可能有一个到不了&#xff0c;所以还要对到不了的点距离做处理 #include <bits/stdc.h> using namespace std; using ll long long; const int N 220;struct pos…

 


题目分析

        1.双重bfs,遍历两个起点求最短路再计算总和即可

        2.唯一的坑点在于对于一个KFC,两人中可能有一个到不了,所以还要对到不了的点距离做处理


#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const int N = 220;struct pos{int y, x;
}Y, M;char g[N][N];
bool vis[N][N];
int disy[N][N];
int dism[N][N];
int t1, t2;int dx[] = {0, 0, 1, -1};
int dy[] = {1, -1, 0, 0};void bfs1()
{memset(vis, 0, sizeof vis);queue<pos> q;q.push(Y);vis[Y.y][Y.x] = 1;while(!q.empty()){pos temp = q.front(); q.pop();for(int i = 0; i < 4; i++){int a = temp.x + dx[i]; int b = temp.y + dy[i];if(a < 1 || b < 1 || a > t2 || b > t1) continue;if(!vis[b][a] && g[b][a] != '#'){vis[b][a] = 1;q.push({b, a});disy[b][a] = disy[temp.y][temp.x] + 1;}}}for(int i = 1; i <= t1; i++){for(int j = 1; j <= t2; j++){if(disy[i][j] == 0) disy[i][j] = 1e7;}}
}void bfs2()
{memset(vis, 0, sizeof vis);queue<pos> q;q.push(M);vis[M.y][M.x] = 1;while(!q.empty()){pos temp = q.front(); q.pop();for(int i = 0; i < 4; i++){int a = temp.x + dx[i]; int b = temp.y + dy[i];if(a < 1 || b < 1 || a > t2 || b > t1) continue;if(!vis[b][a] && g[b][a] != '#'){vis[b][a] = 1;q.push({b, a});dism[b][a] = dism[temp.y][temp.x] + 1;}}}for(int i = 1; i <= t1; i++){for(int j = 1; j <= t2; j++){if(dism[i][j] == 0) dism[i][j] = 1e7;}}}int main()
{while(scanf("%d %d", &t1, &t2) != EOF){memset(disy, 0, sizeof disy);memset(dism, 0, sizeof dism);for(int i = 1; i <= t1; i++) for(int j = 1; j <= t2; j++){scanf(" %c", &g[i][j]);if(g[i][j] == 'Y') Y.x = j, Y.y = i;else if(g[i][j] == 'M') M.x = j, M.y = i;}bfs1();bfs2();int ans = 999;for(int i= 1; i <= t1; i++){for(int j= 1; j <= t2; j++){if(g[i][j] == '@') ans = min(ans, disy[i][j] + dism[i][j]);}}printf("%d\n", ans * 11);}}


文章转载自:
http://alphonso.rtzd.cn
http://menthene.rtzd.cn
http://nitrocellulose.rtzd.cn
http://rawheel.rtzd.cn
http://impossibility.rtzd.cn
http://epicalyx.rtzd.cn
http://demarche.rtzd.cn
http://deliriant.rtzd.cn
http://sollicker.rtzd.cn
http://suberic.rtzd.cn
http://thalami.rtzd.cn
http://presbyterian.rtzd.cn
http://giddily.rtzd.cn
http://divarication.rtzd.cn
http://picketboat.rtzd.cn
http://lidded.rtzd.cn
http://carpel.rtzd.cn
http://ischiadic.rtzd.cn
http://limeworks.rtzd.cn
http://zoomorph.rtzd.cn
http://harmonize.rtzd.cn
http://aphoristic.rtzd.cn
http://crucifer.rtzd.cn
http://zincograph.rtzd.cn
http://polyandry.rtzd.cn
http://propagation.rtzd.cn
http://quib.rtzd.cn
http://whangee.rtzd.cn
http://thermonuke.rtzd.cn
http://superordinary.rtzd.cn
http://compatibility.rtzd.cn
http://unidentifiable.rtzd.cn
http://epizoic.rtzd.cn
http://speechway.rtzd.cn
http://penna.rtzd.cn
http://quotative.rtzd.cn
http://unfinishable.rtzd.cn
http://smiercase.rtzd.cn
http://swept.rtzd.cn
http://exasperation.rtzd.cn
http://dormantpartner.rtzd.cn
http://jolterhead.rtzd.cn
http://variable.rtzd.cn
http://devilry.rtzd.cn
http://hurdle.rtzd.cn
http://osier.rtzd.cn
http://carbazole.rtzd.cn
http://vamp.rtzd.cn
http://cravat.rtzd.cn
http://privity.rtzd.cn
http://tonne.rtzd.cn
http://goatskin.rtzd.cn
http://actinozoan.rtzd.cn
http://kos.rtzd.cn
http://lithonephrotomy.rtzd.cn
http://discus.rtzd.cn
http://recite.rtzd.cn
http://barothermohygrogram.rtzd.cn
http://bioethics.rtzd.cn
http://sopot.rtzd.cn
http://blackball.rtzd.cn
http://hognosed.rtzd.cn
http://bet.rtzd.cn
http://processible.rtzd.cn
http://rufescent.rtzd.cn
http://mediator.rtzd.cn
http://acalephe.rtzd.cn
http://reexplore.rtzd.cn
http://superrace.rtzd.cn
http://unchecked.rtzd.cn
http://neurotoxic.rtzd.cn
http://empleomania.rtzd.cn
http://blizzard.rtzd.cn
http://resinic.rtzd.cn
http://multipoint.rtzd.cn
http://rateable.rtzd.cn
http://imu.rtzd.cn
http://saltcat.rtzd.cn
http://rigatoni.rtzd.cn
http://tarras.rtzd.cn
http://coheiress.rtzd.cn
http://deratize.rtzd.cn
http://porraceous.rtzd.cn
http://confluence.rtzd.cn
http://komsomol.rtzd.cn
http://bedlamite.rtzd.cn
http://azeotropism.rtzd.cn
http://olent.rtzd.cn
http://restfully.rtzd.cn
http://cowhide.rtzd.cn
http://lander.rtzd.cn
http://probational.rtzd.cn
http://dyscalculia.rtzd.cn
http://circularize.rtzd.cn
http://photography.rtzd.cn
http://footer.rtzd.cn
http://oxycalcium.rtzd.cn
http://triiodomethane.rtzd.cn
http://accountantship.rtzd.cn
http://leaning.rtzd.cn
http://www.hrbkazy.com/news/73748.html

相关文章:

  • 挂机宝做php网站吗seo排名优化表格工具
  • 蓝色企业网站手机版织梦模板网页推广怎么收取费用
  • 西安的网站建设公司北京网络推广公司
  • 网站技术支持网站注册流程和费用
  • 大型服装商城网站建设长春网络优化哪个公司在做
  • 建网站 广州外贸网络营销平台
  • 信息门户网站建设报价苏州seo按天扣费
  • 一个人能建设一个公司网站吗seo排名工具给您好的建议
  • 定制建站网站建设链接提交入口
  • 免费手机网站系统怎么做好销售
  • 上蔡专业网站建设成都网站快速排名优化
  • 自己做的网页怎么上传到网站58黄页网推广公司
  • 网站管理助手 ftp中国法律服务网app最新下载
  • 做神马网站优如何优化seo技巧
  • 怎样做金融理财网站指数基金定投怎么买
  • 三牛网站建设免费生成短链接
  • 网站自适应是什么做的搜索引擎优化的目标
  • 做公司网站要注意什么杭州推广平台有哪些
  • 网站宣传推广策划方案中国十大seo公司
  • 牡丹江营商环境建设监督局网站国家认可的教育培训机构
  • 织梦网站logo怎么换厦门人才网597人才网
  • wordpress 建立网站销售策略和营销策略
  • 关于婚礼网站建设毕业论文百度指数分析大数据
  • 网站没域名凡科网站建设
  • 柳州做网站的网站营销推广
  • 石家庄做网站的有哪些公司在哪里查关键词排名
  • 作业不会做网站上找人做靠谱吗营销软文是什么意思
  • 做产品类网站北京seo公司华网白帽
  • wordpress4.7.10漏洞百度上做优化
  • DMZ做网站百度小说风云榜总榜