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
1253
HDU
1253
胜利大逃亡(三维BFS)
点我看题目 题意 : 中文题不详述。 思路 :因为还牵扯到层的问题,所以用三维的解决,不过这个还是很简单的BFS,六个方向搜一下就可以了,一开始交的时候老是超时,怎么改都不对,后来看了一个人写的博客,他说用C++交300ms,G++交600ms,我就改成C++交了,果然AC了,不过。。。。用了900ms。。。。。我也懒得改了,也不知道为什么G++交超时 #include <st
·
2015-11-12 09:00
HDU
hdu
1253
胜利大逃亡(BFS)
pid=
1253
View Code 1 #include<stdio.h> 2 #include<string.h> 3 int a[51][51][51
·
2015-11-11 16:18
HDU
杭电
1253
题
//简单的广度优先搜索//解题思路:剪枝//*思路首先分析可走的路的总数是否大于等于最短路径数(最短路径数=a+b+c-2),如果小于怎样都无法到达出口//*所以可以直接输出-1,还有总的时间数小于最短时间(最短时间数=a+b+c-2)也是无法到达出口,除去以上情况//*然后使用BFS进行搜寻就可以了#include <stdio.h>#include <queue>usi
·
2015-11-11 15:28
杭电
HDU
1253
胜利大逃亡(BFS)
题目链接 这个题,数据很变态。。WA了N次。。。看DISCUSS,过的。 1 #include <stdio.h> 2 #include <string.h> 3 #define N 125001 4 int p[60][60][60],o[60][60][60]; 5 int qua[N],qub[N],quc[N]; 6 int x[7] =
·
2015-11-11 15:57
HDU
用SQL替换最后一个指定字符后面的所有字符
假如字符串为:'x
1253
-axebx-xcdx-o9kgl-3ddll-llllll-4lldfl',我们把最后一个‘-’后面的‘4lldfl’替换成‘1593654’,该如何写SQL。
·
2015-11-11 13:19
sql
HDU
1253
胜利大逃亡
pid=
1253
大意:能否在规定时间内从(0,0,0)——>(a-1,b-1,c-1) #include <iostream>#include <string>#include
·
2015-11-11 10:15
HDU
HDOJ
1253
HDU
1253
胜利大逃亡 ACM
1253
IN HDU
pid=
1253
题目描述: 胜利大逃亡 Time Limit: 4000
·
2015-11-11 07:29
ACM
bjfu
1253
最大上升子序列和
n^2的算法就行,很简单的动态规划。直接上代码 /* * Author : ben */ #include <cstdio> #include <cstdlib> #include <cstring> #include <cmath> #include <ctime> #include <iostrea
·
2015-11-11 04:03
序列
iblogs博客程序1.0版
在短短的一年时间了,博客这个概念在中国迅速蔓延,博客站点也雨后春笋般出现,现在开源的博客有很多,请看 http://www.iblogs.cn/OpenBlog/archive/2005/07/07/
1253
·
2015-11-07 15:55
Blog
hdu
1253
胜利大逃亡 (三维简单bfs+剪枝)
胜利大逃亡 Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 21449 Accepted Submission(s): 8442 Problem Descript
·
2015-11-07 11:28
HDU
dp小结
CODEVS
1253
超级市场 题目描述 Description 某人喜欢按照自己的规则去市场买菜,他每天都列一个买菜的清单,自由市场的菜码放也有一个顺序,该人有一个特点,就是按顺序买菜
·
2015-11-05 08:52
dp
hdu
1253
胜利大逃亡
题目链接:hdu
1253
,题目大意:从一个立方体的左下角走到右上角(两点间的连线为长方体的体对角线)的最少时间(步数),走不到或者最少时间达不到要求输出 -1,否则输出该时间。
·
2015-11-05 08:41
HDU
Hdu
1253
胜利大逃亡
唔,最近感觉搜索好弱,明天开始做做搜索专题。 CODE: #include <stdio.h> #include <stdlib.h> #include <queue> #include < string.h> using namespace 
·
2015-11-02 18:43
HDU
HDU
1253
胜利大逃亡
用dfs会超时,而且BFS不剪枝的话也会超时。。。三维搜索。。。搜索题,三维BFS,设定前后上下左右6个方向搜索1.刚开始一直WA,我就一直找不出错误,后来在看这个题时才发现自己犯了个严重的错误,刚开我就把城堡四周赋值为1,后来就没这样初始化了;现在想想吧太不应该了;2、要认清剪枝的重要性,剪枝非常有利于提高代码的效率,就这题而言,若没有if(a+b+c-3>t) {printf("
·
2015-11-02 18:19
HDU
HDU--杭电--
1253
--胜利大逃亡--广搜
胜利大逃亡 Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 21542 Accepted Submission(s): 8479 Proble
·
2015-11-02 16:50
HDU
HDOJ-
1253
基础搜索问题总结[DFS()+BFS()]
胜利大逃亡 Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 9101 Accepted Submission(s): 29
·
2015-11-02 15:06
DFS
HDU
1253
(简单三维广搜) 胜利大逃亡
奇葩!这么简单的广搜居然爆内存了,而且一直爆,一直爆,Orz 而且我也优化过了的啊,尼玛还是一直爆! 先把代码贴上睡觉去了,明天再来弄 1 //#define LOCAL 2 #include <iostream> 3 #include <cstdio> 4 #include <cstring> 5 #includ
·
2015-11-02 11:18
HDU
HDU_
1253
——胜利大逃亡,三围空间BFS
Problem Description Ignatius被魔王抓走了,有一天魔王出差去了,这可是Ignatius逃亡的好机会. 魔王住在一个城堡里,城堡是一个A*B*C的立方体,可以被表示成A个B*C的矩阵,刚开始Ignatius被关在(0,0,0)的位置,离开城堡的门在(A-1,B-1,C-1)的位置,现在知道魔王将在T分钟后回到城堡,Ignatius每分钟能从一个坐标走到相邻的六个坐
·
2015-11-02 10:59
HDU
hdu
1253
(bfs)
pid=
1253
题目不难,简单的BFS加一点剪枝,不过让人郁闷的是用G++提交一直CE,用C++一次AC。
·
2015-11-01 16:24
HDU
HDU
1253
-大逃亡(裸-DBFS)
G - 胜利大逃亡 Time Limit:2000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u Submit Status Practice HDU 125
·
2015-11-01 12:00
HDU
HDU
1253
胜利大逃亡
Original ID:
1253
64-bit integer IO format: %I64d Java class
·
2015-11-01 11:34
HDU
hdoj
1253
胜利大逃亡
pid=
1253
简单BFS,Code1找不到问题,超内存,Code2成功 /* //Code1,有问题,超内存,找不到问题 #include <iostream> #include
·
2015-10-31 18:15
OJ
hdu
1253
胜利大逃亡(简单题)
pid=
1253
题目大意:在所给的时间能顺利离开城堡。
·
2015-10-31 11:51
HDU
HDU
1253
三维数组的图上找最短路
题目大意: 从三维空间的(0,0,0)出发到(a-1,b-1,c-1),每移动一个都要时间加一,计算最短时间 根据六个方向,开个bfs,像spfa那样计算最短路径就行了,但是要1200多ms,也不知道有没有更好的方法 1 #include <cstdio> 2 #include <cstring> 3 #include <iostre
·
2015-10-31 10:11
HDU
使用WMI控制组策略(group policies)
FamilyID=62d91a63-
1253
-4ea6-8599-68fb3ef77de1&
·
2015-10-31 10:18
group
HDU
1253
(简单BFS)
很easy的一个BFS 注意强剪一下就过了~~6分钟敲完代码 调试5分钟 诶 自己还是太菜了~~~ 以下是代码 HDU的服务器可能有问题 每次提交时间都不一样 最高的是765MS 还是小号 郁闷 当然还可以进一步优化 比如位运算处理 可能会快一倍以上时间吧 懒得写了 反正也不是太卡时间
·
2015-10-31 09:13
HDU
HDU 2079 选课时间(题目已修改,注意读题)(简单的母函数运用)
32768/32768 K (Java/Others)Total Submission(s): 1516 Accepted Submission(s):
1253
·
2015-10-31 09:15
HDU
胜利大逃亡(杭电hdu
1253
)bfs简单题
胜利大逃亡 Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 21759 Accepted Submiss
·
2015-10-31 09:31
HDU
HDU
1253
胜利大逃亡 BFS 简单题
题意: Ignatius要从迷宫的(1,1,1)在时间t内跑到(a,b,c),问可不可能。 (题目本来是从(0,0,0)跑到(a-1,b-1,c-1)的) 简单的3维bfs 加剪枝: a+b+c-3>t 速度会快不少。 不过我这里没有加。 Input 输入数据的第一行是一个正整数K,表明测试数据的数量.每组测试数据的第一行
·
2015-10-28 08:51
HDU
X问题(中国剩余定理+不互质版应用)hdu1573
32768/32768 K (Java/Others)Total Submission(s): 3921 Accepted Submission(s):
1253
·
2015-10-23 08:29
HDU
HDOJ
1253
胜利大逃亡(bfs)
pid=
1253
思路分析:因为问题需要寻找到达终点的最短的距离(最短的步数),即在状态转换图上需要找出层次最浅的的状态(A-1, B-1, C-1), 所以采用bfs更快能找出答案;另外,若采用dfs
·
2015-10-21 13:22
bfs
胜利大逃亡--hdu
1253
pid=
1253
广搜题 1 #include <stdio.h> 2 #include <string.h> 3 #include <queue>
·
2015-10-21 11:55
HDU
HDU_
1253
胜利大逃亡(BFS)
纠结一晚上,注意细节啊!!!(看到有很多解题报告都用<queue>,我不太喜欢用STL的东西。。。) My Code: #include <iostream>#include <cstdio>#include <cstring>using namespace std;const int N = 51;struct node{ in
·
2015-10-21 11:46
HDU
hdu
1253
胜利大逃亡(简单题)
pid=
1253
题目大意:在所给的时间能顺利离开城堡。
qiqi_skystar
·
2015-10-12 14:00
1253
:胜利大逃亡
pid=
1253
方法:bfs思路:很常规的三维广搜,但是问题是这个题的数据量很大,直接广搜超时了好几发。需要在一些细节上做一些修改,比如,在广搜过程中一旦发现目前时间已经超过了规定时间,立刻返回。
freedom098
·
2015-10-01 10:00
天涯明月刀诗句npc坐标在哪 小乞丐具体位置坐标一览
小编只能给出一个较为模糊的坐标[2248,
1253
],玩家可以尝试在附近或周围固定的行进路线进行寻找。
佚名
·
2015-09-26 14:35
HDU
1253
胜利大逃亡
很简单的三维深搜。#include #include #include usingnamespacestd; #defineN60 intmap[N][N][N]; intm,n,k,time,ok; inta1,b1,c1,a2,b2,c2; intdir[6][3]={{1,0,0},{-1,0,0},{0,1,0},{0,-1,0},{0,0,1},{0,0,-1}}; structnode
zyx520ytt
·
2015-09-16 23:00
hdu
1253
胜利大逃亡bfs
pid=
1253
#include #include #include usingnamespacestd; constintINF=10000;//时间初始值为无穷大; constintMAX=70;
aonaigayiximasi
·
2015-09-16 21:00
HDOJ
1253
胜利大逃亡 BFS
胜利大逃亡TimeLimit:4000/2000MS(Java/Others)MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):29528AcceptedSubmission(s):11136ProblemDescriptionIgnatius被魔王抓走了,有一天魔王出差去了,这可是Ignatius逃亡的好机会.魔王住在一个城堡里,城堡
qq_26525215
·
2015-08-27 16:00
bfs
极客标签Web前端开发资源大荟萃#015
代码链接:http://www.gbtags.com/gb/rtreplayerpreview/
1253
.htm 2.
kvhur
·
2015-08-10 12:00
JavaScript
jquery
html5
css
HDOJ
1253
胜利大逃亡 (三维BFS+技巧)
胜利大逃亡TimeLimit:4000/2000ms(Java/Other) MemoryLimit:65536/32768K(Java/Other)TotalSubmission(s):5 AcceptedSubmission(s):1ProblemDescriptionIgnatius被魔王抓走了,有一天魔王出差去了,这可是Ignatius逃亡的好机会.魔王住在一个城堡里,城堡是一个A
helloiamclh
·
2015-08-07 20:00
hdu
1253
(胜利大逃亡)
点击打开杭电
1253
ProblemDescriptionIgnatius被魔王抓走了,有一天魔王出差去了,这可是Ignatius逃亡的好机会.魔王住在一个城堡里,城堡是一个A*B*C的立方体,可以被表示成
u011479875
·
2015-08-06 02:00
杭电1253
胜利大逃亡
南邮 OJ
1253
程序存储问题
程序存储问题时间限制(普通/Java) : 1000MS/ 3000MS 运行内存限制:65536KByte总提交:102 测试通过:46 比赛描述设有n 个程序{1,2,…, n }要存放在长度为L的磁带上。程序i存放在磁带上的长度是li ,1 ≤ i ≤n。程序存储问题要求确定这n 个程序在磁带上的一个存储方案,使得能够在磁带上存储尽可能多的程序。对于给定的n个程序存放在
changshu1
·
2015-08-05 14:00
ACM
南邮OJ
程序存储问题
暑假集训第三周周六赛 STL D - 胜利大逃亡
胜利大逃亡TimeLimit:2000MS MemoryLimit:32768KB 64bitIOFormat:%I64d&%I64uSubmit Status Practice HDU
1253
DescriptionIgnatius
linyuxilu
·
2015-08-04 21:00
HDU
1253
胜利大逃亡
题目有个坑是可能没有到达门口的路,结果WA好几次#include#include#include#includeusingnamespacestd;constintINF=10000000;inta,b,c,d;ints[60][60][60],cost[60][60][60];intdx[]={0,0,1,-1,0,0},dy[]={0,0,0,0,1,-1},dz[]={-1,1,0,0,0,
霜刃未曾试
·
2015-07-20 20:21
在QMap中嵌套QList
可参考别的资料QMap>panelStatistics; QListpanelInfo; panelInfo.push_back("0102"); panelInfo.push_back("
1253
")
conquerwave
·
2015-06-11 09:00
HDU
1253
胜利大逃亡 BFS
胜利大逃亡TimeLimit:4000/2000MS(Java/Others) MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):28623 AcceptedSubmission(s):10835ProblemDescriptionIgnatius被魔王抓走了,有一天魔王出差去了,这可是Ignatius逃亡的好机会.魔王住在
wust_ZJX
·
2015-05-15 21:00
HDU----
1253
胜利大逃亡 BFS
胜利大逃亡TimeLimit:4000/2000MS(Java/Others) MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):28472 AcceptedSubmission(s):10782ProblemDescriptionIgnatius被魔王抓走了,有一天魔王出差去了,这可是Ignatius逃亡的好机会.魔王住在
qq_24489717
·
2015-05-07 18:00
民国以前云南政权的变动
元朝时期,
1253
年,忽必烈派蒙古军队统一大理国,并多次派军深入缅甸中部北部西部东部,1276年建立云南行省,出现云南省之名,管辖范围包括现在的云南省,贵州省西部,缅甸北部东部中部地区,以及老挝与越南的少数地区
aerchi
·
2015-05-04 12:00
hdu
1253
胜利大逃亡 队列
/************************************************Author:xryzEmail:
[email protected]
:2015/4/919:45:38FileName:C:\Users\Administrator\Desktop\a.cpp*********************************************
xinag578
·
2015-04-09 22:00
上一页
2
3
4
5
6
7
8
9
下一页
按字母分类:
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
其他