E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
救援模式rescue
hdu1242
pid=1242题目:
Rescue
TimeLimit:2000/1000MS(Java/Others)MemoryLimit:65536/32768K(Java/Others)TotalSubmission
FBI-PC
·
2020-07-30 01:06
搜索
杭电1242————搜索之优先队列
Rescue
TimeLimit:2000/1000MS(Java/Others)MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):15823AcceptedSubmission
SixDayy
·
2020-07-30 01:32
Search
hdu 1242
Rescue
bfs+优先队列priority
Rescue
TimeLimit:2000/1000MS(Java/Others)MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):18318AcceptedSubmission
luckyone2014
·
2020-07-30 01:00
搜索
HDU1242-
Rescue
Rescue
TimeLimit:2000/1000MS(Java/Others)MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):16313AcceptedSubmission
光仔December
·
2020-07-30 01:59
搜索
优先队列
HDU1242
Rescue
-BFS,优先队列
ProblemDescriptionAngelwascaughtbytheMOLIGPY!HewasputinprisonbyMoligpy.TheprisonisdescribedasaN*M(N,M#include#defineinf40010intmin;charmap[210][210];intz[4][2]={{-1,0},{1,0},{0,-1},{0,1}};intfind(inti
szf向日葵
·
2020-07-30 01:59
搜索
HDU
HDU 1242 -
Rescue
(双向BFS)&&( BFS+优先队列)
题目链接:
Rescue
进度落下的太多了,哎╮(╯▽╰)╭,渣渣我总是埋怨进度比别人慢。。。为什么不试着改变一下捏。。。。
品尝这杯浓咖啡
·
2020-07-30 01:27
搜索专题
ZOJ
&&
HDU
HDU1242
Rescue
【BFS】
Rescue
TimeLimit:2000/1000MS(Java/Others)MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):16314AcceptedSubmission
长风Qiu
·
2020-07-30 01:45
hdu oj 1242
Rescue
Rescue
TimeLimit:2000/1000MS(Java/Others)MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):14222AcceptedSubmission
尘飞acmer
·
2020-07-30 01:54
acm初级训练
HDU-1242
Rescue
Rescue
TimeLimit:2000/1000MS(Java/Others)MemoryLimit:65536/32768K(Java/Others)ProblemDescriptionAngelwascaughtbytheMOLIGPY
J_Sure
·
2020-07-30 01:52
ACM-HDU
BFS
zoj1649(优先队列)
Rescue
TimeLimit:2SecondsMemoryLimit:65536KBAngelwascaughtbytheMOLIGPY!
少点多些
·
2020-07-30 01:05
BFS
HDU--1242 --
Rescue
[广搜]
Rescue
TimeLimit:2000/1000MS(Java/Others)MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):12409AcceptedSubmission
kiya-z
·
2020-07-30 01:39
ACM
HDU1242
Rescue
#include#include#include#include#include#include#include#include#includeusingnamespacestd;intmap[211][211];intn,m;intx_s,y_s;intx_e,y_e;structnode{intx,y;intstep;friendbooloperator=n||y=m)return1;if(m
韦我独尊-德天独厚
·
2020-07-30 01:45
hdu1242
Rescue
优先队列BFS
Angel'sfriendswanttosaveAngel.Theirtaskis:approachAngel.Weassumethat"approachAngel"istogettothepositionwhereAngelstays.Whenthere'saguardinthegrid,wemustkillhim(orher?)tomoveintothegrid.Weassumethatwem
小七和小墨
·
2020-07-30 01:52
acm_搜索
HDU 1242
Rescue
(dfs深搜)
ProblemDescriptionAngelwascaughtbytheMOLIGPY!HewasputinprisonbyMoligpy.TheprisonisdescribedasaN*M(N,M#include#include#include#include#include#include#include#include#include#definemem(a,x)memset(a,x,s
Must_so
·
2020-07-30 01:43
ACM题解与算法
ACM(算法)
HDU1026 Ignatius and the Princess I(java)
ProblemDescriptionThePrincesshasbeenabductedbytheBEelzebubfeng5166,ourheroIgnatiushasto
rescue
ourprettyPrincess.Nowhegetsintofeng5166
路远兮
·
2020-07-30 00:05
ACM
hdu 1242
Rescue
(方法一:BFS+优先队列,方法二:DFS)
原题链接:http://acm.hdu.edu.cn/showproblem.php?pid=1242题目大意:‘a’到‘r’所需最少时间。‘#’墙,‘x’花费两个时间,‘.’花费一个时间。由于‘x'与’.‘的时间不一样,所以不能直接bfs,要用优先队列排下序。BFS法更快方法一:代码如下:#include#include#include#includeusingnamespacestd;cons
H2oooooooooooooooooo
·
2020-07-30 00:49
be17
acm
hdu
bfs
优先队列
dfs
poj1649
Rescue
(BFS+优先队列)
Rescue
TimeLimit:2SecondsMemoryLimit:65536KBAngelwascaughtbytheMOLIGPY!
甄情
·
2020-07-30 00:25
【图论】
【搜索】
[ACM] HDU 1242
Rescue
(优先队列)
Rescue
ProblemDescriptionAngelwascaughtbytheMOLIGPY!
同学少年
·
2020-07-30 00:37
ACM题目
[ACM]_搜索
HDU6797 Tokitsukaze and
Rescue
(最短路/DFS/暴力)
PrincessCJBhaslivedalmostherentirelifeintheisolatedtownofErtona,whereCJBusesheruniqueabilitytorecognizewherecrystalsofmaterialsareburied.Bywayofafatefulencounter,CJBlearnsoftheAlchemyExamanddecidestot
脂环
·
2020-07-30 00:00
Hdoj 1424
Rescue
【BFS】
Rescue
TimeLimit:2000/1000MS(Java/Others)MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):18493AcceptedSubmission
shengweisong
·
2020-07-30 00:54
BFS
hdu 1242
Rescue
(优先队列+bf)s
Rescue
TimeLimit:2000/1000MS(Java/Others)MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):38884AcceptedSubmission
sdauguanweihong
·
2020-07-30 00:29
bfs
hdu 1242
rescue
bfs+优先队列
#include#include#include#includeusingnamespacestd;intvis[205][205];charmp[205][205];intdir[4][2]={1,0,-1,0,0,1,0,-1};intsx,sy,ex,ey,tx,ty,step,n,m;structnode{intx,y,step;friendbooloperatorn2.step;}}po
忘带我的佩奇了
·
2020-07-29 23:48
搜索
HDU-1026 Ignatius and the Princess I
(Java/Others)ProblemDescriptionThePrincesshasbeenabductedbytheBEelzebubfeng5166,ourheroIgnatiushasto
rescue
ourprettyPrin
你先画个包络面
·
2020-07-29 23:03
ACM练习
HDU 1242
Rescue
(广搜BFS)
Rescue
题目网址:http://acm.hdu.edu.cn/showproblem.php?
Bank_Lei
·
2020-07-29 23:12
c++学习
杭电
STL练习
广搜(bfs)
算法
优先队列
Rescue
(广度优先搜索 BFS)
网址:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=649AngelwascaughtbytheMOLIGPY!HewasputinprisonbyMoligpy.TheprisonisdescribedasaN*M(N,M#includeusingnamespacestd;constintM=200+10;charstr[M
qq_41555192yl
·
2020-07-29 23:34
BFS
ZOJ 1649:
Rescue
(BFS)
http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=649AngelwascaughtbytheMOLIGPY!HewasputinprisonbyMoligpy.TheprisonisdescribedasaN*M(N,M#include#include#defineN220usingnamespacestd;intn,m;cha
张宜强
·
2020-07-29 23:02
广度优先搜索
A -
Rescue
【BFS】
AngelwascaughtbytheMOLIGPY!HewasputinprisonbyMoligpy.TheprisonisdescribedasaN*M(N,M#includeusingnamespacestd;constintMAXN=200+10;vectorG[MAXN];charstr[MAXN][MAXN];intvis[MAXN][MAXN];intn,m;structnode{
hpuzjh
·
2020-07-29 23:53
图论
BFS(广度搜索)
暑期集训
【HDU - 1026 】Ignatius and the Princess I (bfs + 记录路径)
题干:ThePrincesshasbeenabductedbytheBEelzebubfeng5166,ourheroIgnatiushasto
rescue
ourprettyPrincess.Nowhegetsintofeng5166
韬光养晦_
·
2020-07-29 23:52
bfs
HDU
Rescue
(hdu 1242) (逆向bfs+优先队列)
Rescue
TimeLimit:2000/1000MS(Java/Others)MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):36566AcceptedSubmission
punchline_skr
·
2020-07-29 23:14
ACM之BFS专题
Rescue
(bfs加点dp的思想优化)
ProblemDescriptionAngelwascaughtbytheMOLIGPY!HewasputinprisonbyMoligpy.TheprisonisdescribedasaN*M(N,M#include#includeusingnamespacestd;constintN=201;typedefpairp;//用pari封装一下坐标typedefqueueq;intm,n;char
MInNrz
·
2020-07-29 23:56
算法
acm
HDU - 1242
Rescue
AngelwascaughtbytheMOLIGPY!HewasputinprisonbyMoligpy.TheprisonisdescribedasaN*M(N,M#include#includeusingnamespacestd;constintmaxn=250;intdir[4][2]={1,0,-1,0,0,1,0,-1};intvis[maxn][maxn];charmap[maxn][
风之旅@
·
2020-07-29 23:54
BFS
图论
HDU - 1242
Rescue
(迷宫问题 深搜 )
AngelwascaughtbytheMOLIGPY!HewasputinprisonbyMoligpy.TheprisonisdescribedasaN*M(N,M#include#includeusingnamespacestd;charmap[250][250];intcurstep;intminstep;intvis[250][250];intx,y,m,n;intdir[4][2]={0
脑回路清奇的少年
·
2020-07-29 23:15
ACM
HDU 1242
Rescue
(优先队列+广度优先搜索)
Rescue
ProblemDescriptionAngelwascaughtbytheMOLIGPY!
拂袖秋波
·
2020-07-29 23:10
算法
STL
容器
广搜加优先队列 题目:
Rescue
所谓优先队列,也就是说把同一层具有最后结果特性的数据放在队列前面,以此向后累加,比如,求最小时间,把同一层记录的时间较小的放在这一层所占队列的前面,遇到结束条件时,结束搜索AngelwascaughtbytheMOLIGPY!HewasputinprisonbyMoligpy.TheprisonisdescribedasaN*M(N,MOutputForeachtestcase,yourprogr
Just__a__rookie
·
2020-07-29 23:28
Rescue
AngelwascaughtbytheMOLIGPY!HewasputinprisonbyMoligpy.TheprisonisdescribedasaN*M(N,M#include#includeusingnamespacestd;typedefstructstu{intx,y,z;friendbooloperatorb.z;}}st;intmain(){inti,j,m,n,x1,y1,fla
Just__a__rookie
·
2020-07-29 23:28
搜索
HDU 1242
Rescue
(bfs+优先队列)
Rescue
TimeLimit:2000/1000ms(Java/Other)MemoryLimit:65536/32768K(Java/Other)TotalSubmission(s):4AcceptedSubmission
寒萧北决风
·
2020-07-29 22:46
杭电acm
搜索
HDU
天天写算法之
Rescue
地址点击打开链接注意这个题可以有多个天使的朋友,也就是多个出发点,因此要倒过来想,就是从天使出发,找到最近的朋友即可。然后用到了优先队列,这样的话,优先时间,这样第一次访问到目的地时,即可返回结果。代码如下#include#include#include#includeusingnamespacestd;#defineMAX201structPersion{intx;inty;inttime;fr
这梦想不休不止
·
2020-07-29 22:59
算法
hdu1242
Rescue
BFS+优先队列
Rescue
TimeLimit:2000/1000MS(Java/Others)MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):29050AcceptedSubmission
HPU王小二
·
2020-07-29 22:49
bfs
(BFS)
Rescue
--HDOJ
Rescue
TimeLimit:2000/1000MS(Java/Others)MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):1425AcceptedSubmission
默默Silence
·
2020-07-29 22:11
搜索
Rescue
优先队列+广搜
Rescue
TimeLimit:2000/1000ms(Java/Other)MemoryLimit:65536/32768K(Java/Other)TotalSubmission(s):12AcceptedSubmission
三茶先生
·
2020-07-29 22:06
ACM_广搜
HDU-1242-
Rescue
(优先队列+BFS)
H-
Rescue
TimeLimit:1000MSMemoryLimit:32768KB64bitIOFormat:%I64d&%I64uSubmitStatusPracticeHDU1242DescriptionAngelwascaughtbytheMOLIGPY
Prim233
·
2020-07-29 22:34
搜索
hdoj---
Rescue
Rescue
TimeLimit:2000/1000ms(Java/Other)MemoryLimit:65536/32768K(Java/Other)TotalSubmission(s):60AcceptedSubmission
playboy307
·
2020-07-29 22:58
搜索
HDU 1242
Rescue
优先队列 BFS
pid=1242原题:
Rescue
TimeLimit:2000/1000MS(Java/Others)MemoryLimit:65536/32768K(Java/Others)TotalSubmission
小盼你最萌哒
·
2020-07-29 22:00
bfs
HDOJ 1242
Rescue
(BFS + 优先队列)
Rescue
ProblemDescriptionAngelwascaughtbytheMOLIGPY!
nudt_oys
·
2020-07-29 22:18
搜索
HDOJ/HDU 1242
Rescue
(经典BFS深搜-优先队列)
ProblemDescriptionAngelwascaughtbytheMOLIGPY!HewasputinprisonbyMoligpy.TheprisonisdescribedasaN*M(N,M#include#include#includeusingnamespacestd;structnode{intx,y,t;friendbooloperator=n||y=m){return0;}i
谙忆
·
2020-07-29 22:17
❶
ACM
-----
HDOJ-C++
❺
算法及基础题
-----
递归搜索回溯
ACM之旅
杭电ACM1242——
Rescue
~~BFS+优先队列
这题,简单的BFS就可以搞定。题目的大概意思是最短时间从地图的r到达a。一开始,用普通的队列来做,结果内存超了,原因是N和M最大200;普通的队列会浪费一大堆内存,所以应该改用优先队列来做。下面是AC的代码:#include#include#includeusingnamespacestd;classdata{public:intx,y,cost;friendbooloperatorque;dat
XD灬
·
2020-07-29 22:39
杭电
HDOJ 1242
Rescue
【BFS】
Rescue
TimeLimit:2000/1000MS(Java/Others)MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):21697AcceptedSubmission
巧克力华夫脆
·
2020-07-29 22:59
HDOJ
DFS
&&
BFS
c语言
HDU 1242
Rescue
POJ1242
Rescue
ProblemDescriptionAngelwascaughtbytheMOLIGPY!
小鸡炖蘑菇_
·
2020-07-29 21:03
杭电
Rescue
-优先队列
F-
Rescue
TimeLimit:1000MSMemoryLimit:32768KB64bitIOFormat:%I64d&%I64uSubmitStatusPracticeHDU1242DescriptionAngelwascaughtbytheMOLIGPY
77458
·
2020-07-29 21:19
ACM_图论
HDU-#1242
Rescue
(BFS)
题目大意:解救天使,但天使有很多朋友,迷宫中也有守卫,求解救天使的最短路径长度,其中任何一个朋友解救到即可,遇到守卫就杀死,并且需要再花费一个时间。解题思路:由于天使有很多朋友,数量未知,因此,将天使作为起点,对其朋友进行搜索。换需要注意一点的是遇到x的处理方法,可以在搜索过程中路径加1以后,再对该点进行判断,如该点为x,则再加一个长度。详见code。题目来源:http://acm.hdu.edu
沁路墨彦
·
2020-07-29 21:58
上一页
12
13
14
15
16
17
18
19
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他