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
CUE
HDOJ/HDU 1242 Res
cue
(经典BFS深搜-优先队列)
ProblemDescriptionAngelwascaughtbytheMOLIGPY!HewasputinprisonbyMoligpy.TheprisonisdescribedasaN*M(N,M#include#include#includeusingnamespacestd;structnode{intx,y,t;friendbooloperator=n||y=m){return0;}i
weixin_30919919
·
2020-07-30 02:53
2018.12.01
It'sSaturday.Chapter18:AnnetotheRes
cue
ALLTHINGSGREATarewoundupwithallthingslittle.AtfirstglanceitmightnotseemthatthedecisionofacertainCanadianPremiertoincludePrinceEdwardIslandinapoliticaltourcouldhav
Mr_Oldman
·
2020-07-30 02:17
山东省第四届acm.Res
cue
The Princess(数学推导)
Res
cue
ThePrincessTimeLimit:1SecMemoryLimit:128MBSubmit:412Solved:168[Submit][Status][WebBoard]DescriptionSeveraldaysago
weixin_30698297
·
2020-07-30 02:43
HDU——1242Res
cue
(BFS+优先队列求点图最短路)
Res
cue
TimeLimit:2000/1000MS(Java/Others)MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):25203AcceptedSubmission
weixin_30619101
·
2020-07-30 02:26
HDU 1242 Res
cue
BFS+优先队列
ProblemDescriptionAngelwascaughtbytheMOLIGPY!HewasputinprisonbyMoligpy.TheprisonisdescribedasaN*M(N,Ma.x;//最小值优先}};structnumber2{intx;booloperator#include#include#include#defineMAXN205usingnamespacest
weixin_30568715
·
2020-07-30 02:17
【搜索】POJ1242:Res
cue
ProblemDescriptionAngelwascaughtbytheMOLIGPY!HewasputinprisonbyMoligpy.TheprisonisdescribedasaN*M(N,M2#include3#include4#include5usingnamespacestd;6charmapp[205][205];7boolvis[205][205];8intdx[4]={0,1
weixin_30436891
·
2020-07-30 02:23
ZOJ 649 Res
cue
(优先队列+bfs)
Res
cue
TimeLimit:2000/1000MS(Java/Others)MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):521AcceptedSubmission
weixin_30383279
·
2020-07-30 02:42
[ACM] hdu 1242 【BFS】
pid=1242参考链接:http://www.acmerblog.com/hdu-1242-Res
cue
-1605.html普通队列+bfs确实是蒙对的,因为击败守卫需要消耗时间1,因此普通队列每一次出队列的元素只是步数上最优
weixin_30367169
·
2020-07-30 02:07
HDU 1026 Ignatius and the Princess I (搜索-广度优先搜索)
IgnatiusandthePrincessIProblemDescriptionThePrincesshasbeenabductedbytheBEelzebubfeng5166,ourheroIgnatiushastores
cue
ourprettyPrincess.Nowhegetsintofeng5166
weixin_30316097
·
2020-07-30 02:25
数据结构与算法
hdu1242 Res
cue
bfs+优先队列
直接把Angle的位置作为起点,广度优先搜索即可,这题不是步数最少,而是time最少,就把以time作为衡量标准,加入优先队列,队首就是当前time最少的。遇到Angle的朋友就退出。只需15msAC代码:#include#include#includeusingnamespacestd;constintmaxn=202;intd[maxn][maxn];intn,m;charG[maxn][ma
weixin_30301183
·
2020-07-30 02:53
HDUoj 1242 Res
cue
( BFS+优先队列
Res
cue
TimeLimit:2000/1000MS(Java/Others)MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):29289AcceptedSubmission
Yishui_Blog
·
2020-07-30 02:52
online
judge
HDU
搜索
DFS/BFS
HDU - 1242 - Res
cue
(BFS)
Res
cue
TimeLimit:2000/1000MS(Java/Others)MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):32900AcceptedSubmission
vloai
·
2020-07-30 02:38
广度优先遍历
HDU
最短路
HDU 1242 Res
cue
DescriptionAngelwascaughtbytheMOLIGPY!HewasputinprisonbyMoligpy.TheprisonisdescribedasaN*M(N,M#include#includeusingnamespacestd;constintdir[4][2]={{0,1},{1,0},{0,-1},{-1,0}};charmatrix[202][202];charu
ultimater
·
2020-07-30 02:04
宽度优先
hdu 1242 Res
cue
(bfs+优先队列)
Res
cue
TimeLimit:2000/1000MS(Java/Others)MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):15639AcceptedSubmission
范贰小青年
·
2020-07-30 02:25
▁初学
(⊙_⊙)搜索
(⊙o⊙)…广度优先搜索
第四届 山东省ACM Res
cue
The Princess(计算几何)
Res
cue
ThePrincessTimeLimit:1000msMemorylimit:65536K有疑问?
蜗牛蜗牛慢慢爬
·
2020-07-30 01:54
ACM---山东省赛
山东省ACM省赛
Hduoj1242【广搜+优先队列】
/*Res
cue
TimeLimit:2000/1000MS(Java/Others)MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):16997AcceptedSubmission
乐着过一辈子
·
2020-07-30 01:21
搜索
hdu 1242 Res
cue
(BFS优先队列)
ProblemCTimeLimit:2000/1000ms(Java/Other)MemoryLimit:65536/32768K(Java/Other)TotalSubmission(s):19AcceptedSubmission(s):9ProblemDescriptionAngelwascaughtbytheMOLIGPY!HewasputinprisonbyMoligpy.Thepriso
A_Happyer
·
2020-07-30 01:48
搜索
HDU 1242 Res
cue
(BFS+优先队列)
链接:http://acm.hdu.edu.cn/showproblem.php?pid=1242angel被困在迷宫里,他的朋友们去救。n*m的迷宫,'.'代表路,'#'代表墙,'x'代表守卫,'r'代表朋友,'a'代表ANGEL。求最少时间。由于该题目仅含有一个a点,但是可以含有多个r点,所以从a点开始搜,这点很容易想到。可是写了很久一直Wa,Wa的莫名其妙的感觉,然后看了些题解,说是优先队列
珞辰
·
2020-07-30 01:43
搜索
hdu1242
pid=1242题目:Res
cue
TimeLimit:2000/1000MS(Java/Others)MemoryLimit:65536/32768K(Java/Others)TotalSubmission
FBI-PC
·
2020-07-30 01:06
搜索
杭电1242————搜索之优先队列
Res
cue
TimeLimit:2000/1000MS(Java/Others)MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):15823AcceptedSubmission
SixDayy
·
2020-07-30 01:32
Search
hdu 1242 Res
cue
bfs+优先队列priority
Res
cue
TimeLimit:2000/1000MS(Java/Others)MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):18318AcceptedSubmission
luckyone2014
·
2020-07-30 01:00
搜索
HDU1242-Res
cue
Res
cue
TimeLimit:2000/1000MS(Java/Others)MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):16313AcceptedSubmission
光仔December
·
2020-07-30 01:59
搜索
优先队列
HDU1242 Res
cue
-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 -Res
cue
(双向BFS)&&( BFS+优先队列)
题目链接:Res
cue
进度落下的太多了,哎╮(╯▽╰)╭,渣渣我总是埋怨进度比别人慢。。。为什么不试着改变一下捏。。。。
品尝这杯浓咖啡
·
2020-07-30 01:27
搜索专题
ZOJ
&&
HDU
HDU1242 Res
cue
【BFS】
Res
cue
TimeLimit:2000/1000MS(Java/Others)MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):16314AcceptedSubmission
长风Qiu
·
2020-07-30 01:45
hdu oj 1242 Res
cue
Res
cue
TimeLimit:2000/1000MS(Java/Others)MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):14222AcceptedSubmission
尘飞acmer
·
2020-07-30 01:54
acm初级训练
HDU-1242 Res
cue
Res
cue
TimeLimit:2000/1000MS(Java/Others)MemoryLimit:65536/32768K(Java/Others)ProblemDescriptionAngelwascaughtbytheMOLIGPY
J_Sure
·
2020-07-30 01:52
ACM-HDU
BFS
zoj1649(优先队列)
Res
cue
TimeLimit:2SecondsMemoryLimit:65536KBAngelwascaughtbytheMOLIGPY!
少点多些
·
2020-07-30 01:05
BFS
HDU--1242 -- Res
cue
[广搜]
Res
cue
TimeLimit:2000/1000MS(Java/Others)MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):12409AcceptedSubmission
kiya-z
·
2020-07-30 01:39
ACM
HDU1242 Res
cue
#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 Res
cue
优先队列BFS
Angel'sfriendswanttosaveAngel.Theirtaskis:approachAngel.Weassumethat"approachAngel"istogettothepositionwhereAngelstays.Whenthere'saguardinthegrid,wemustkillhim(orher?)tomoveintothegrid.Weassumethatwem
小七和小墨
·
2020-07-30 01:52
acm_搜索
HDU 1242 Res
cue
(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,ourheroIgnatiushastores
cue
ourprettyPrincess.Nowhegetsintofeng5166
路远兮
·
2020-07-30 00:05
ACM
hdu 1242 Res
cue
(方法一: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 Res
cue
(BFS+优先队列)
Res
cue
TimeLimit:2SecondsMemoryLimit:65536KBAngelwascaughtbytheMOLIGPY!
甄情
·
2020-07-30 00:25
【图论】
【搜索】
[ACM] HDU 1242 Res
cue
(优先队列)
Res
cue
ProblemDescriptionAngelwascaughtbytheMOLIGPY!
同学少年
·
2020-07-30 00:37
ACM题目
[ACM]_搜索
HDU6797 Tokitsukaze and Res
cue
(最短路/DFS/暴力)
PrincessCJBhaslivedalmostherentirelifeintheisolatedtownofErtona,whereCJBusesheruniqueabilitytorecognizewherecrystalsofmaterialsareburied.Bywayofafatefulencounter,CJBlearnsoftheAlchemyExamanddecidestot
脂环
·
2020-07-30 00:00
Hdoj 1424 Res
cue
【BFS】
Res
cue
TimeLimit:2000/1000MS(Java/Others)MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):18493AcceptedSubmission
shengweisong
·
2020-07-30 00:54
BFS
hdu 1242Res
cue
(优先队列+bf)s
Res
cue
TimeLimit:2000/1000MS(Java/Others)MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):38884AcceptedSubmission
sdauguanweihong
·
2020-07-30 00:29
bfs
第一届“广场舞金曲奖”名单出炉!
èèéèèéé°¨°°è¤¤è¤§¨è觰±èé¤é°±èèéèé§èéè·°±¤èè訤§°±èè°éèèèèèèèè@èèèèèèèè§è·è·¨è·èèop@°è±°èéé°±°è·±è·è¤è
cue
QQ音乐
·
2020-07-30 00:00
hdu 1242 res
cue
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,ourheroIgnatiushastores
cue
ourprettyPrin
你先画个包络面
·
2020-07-29 23:03
ACM练习
HDU 1242 Res
cue
(广搜BFS)
Res
cue
题目网址:http://acm.hdu.edu.cn/showproblem.php?
Bank_Lei
·
2020-07-29 23:12
c++学习
杭电
STL练习
广搜(bfs)
算法
优先队列
Res
cue
(广度优先搜索 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: Res
cue
(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 - Res
cue
【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,ourheroIgnatiushastores
cue
ourprettyPrincess.Nowhegetsintofeng5166
韬光养晦_
·
2020-07-29 23:52
bfs
HDU
Res
cue
(hdu 1242) (逆向bfs+优先队列)
Res
cue
TimeLimit:2000/1000MS(Java/Others)MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):36566AcceptedSubmission
punchline_skr
·
2020-07-29 23:14
ACM之BFS专题
Res
cue
(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 Res
cue
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
图论
上一页
23
24
25
26
27
28
29
30
下一页
按字母分类:
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
其他