HDU-1242 Rescue BFS+优先队列
题目链接:https://vjudge.net/contest/176287\#problem/B
“.”代表路
“#“代表墙
“a”代表angel
“r”代表起点
“x”代表敌人
代码:
题目链接:https://vjudge.net/contest/176287\#problem/B
“.”代表路
“#“代表墙
“a”代表angel
“r”代表起点
“x”代表敌人
代码:
include<cstdio> include<queue> include<cstring> using namespace std;
题意:一个朋友拯救angel,'a' 是angel, 'x'是士兵, 'r'是朋友,'\'是墙壁。没走一步花费一个单位的时间,遇到士兵与士兵搏斗花费一个单位的时间,求最短时间。
Rescue Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Other
题目链接:https://vjudge.net/contest/176287\problem/B "."代表路 "\"代表墙 "a"代表angel "r"代表起点 "
问题描述: The Princess has been abducted by the BEelzebub feng5166, our hero Ignatius has t
//题意自己看,不会度娘 include <stdio.h> include <math.h> include <string.h>
Knight Moves Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java
Rescue Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Other
原题目链接[HDU1242][] -------------------- 分类 HDU 搜索 BFS 优先队列 --------------------
还没有评论,来说两句吧...