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
oil
HDOJ 1241
Oil
Deposits(8方位简单dfs)
OilDepositsTimeLimit:2000/1000MS(Java/Others) MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):17290 AcceptedSubmission(s):9961ProblemDescriptionTheGeoSurvCompgeologicsurveycompanyisrespo
helloiamclh
·
2015-07-22 10:00
UVA 572
Oil
Deposits油田(DFS求连通块)
UVA 572 DFS(floodfill) 用DFS求连通块 Time Limit:1000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64u Desc
·
2015-07-22 08:00
DFS
poj1562
Oil
Deposits(简单的深搜)
OilDepositsTimeLimit: 1000MS MemoryLimit: 10000KTotalSubmissions: 14391 Accepted: 7823DescriptionTheGeoSurvCompgeologicsurveycompanyisresponsiblefordetectingundergroundoildeposits.GeoSurvCompworkswith
su20145104009
·
2015-07-18 15:00
poj
oil
1562
poj1562
Deposits
Oil
Deposits
cid=82828#problem/L
Oil
Deposits Time Limit:1000MS Memory Limit:32768KB
·
2015-07-16 16:00
OS
L -
Oil
Deposits
很清新的一道题,搜索里面最基础的题目,深搜广搜都可以.....不过还是喜欢深搜,写起来简单》。。 //////////////////////////////////////////////// #include<queue> #include<stdio.h> #include< string.h> using
·
2015-07-16 10:00
OS
Mysql 行列转换
1、创建表CREATETABLE`gas`( `id`INT(11)NOTNULLAUTO_INCREMENT, `
oil
`VARCHAR(100)NULLDEFAULTNULL, `district`
rongku
·
2015-07-12 17:00
mysql
行列转换
存储过程与事务
url=HMUElicq9
oIl
4ik8Sdi6BOTNgzO6isHT9g7amG7uBpnGD8PoJ2Uhc3n4YxhHKIu5nsQcVP8k7HJCgcJpYm2TL_http://zhidao.baidu.com
yhj19920417
·
2015-06-29 00:00
UVa 572 -
Oil
Deposits【图DFS】
OilDepositsTheGeoSurvCompgeologicsurveycompanyisresponsiblefordetectingundergroundoildeposits.GeoSurvCompworkswithonelargerectangularregionoflandatatime,andcreatesagridthatdividesthelandintonumeroussq
a995549572
·
2015-06-16 20:00
ACM
图
uva
572
L_
Oil
Deposits(HDU_1241)
DescriptionTheGeoSurvCompgeologicsurveycompanyisresponsiblefordetectingundergroundoildeposits.GeoSurvCompworkswithonelargerectangularregionoflandatatime,andcreatesagridthatdividesthelandintonumeroussq
highmath_Final
·
2015-05-11 11:00
HDU1241
Oil
Deposits DFS
OilDepositsTimeLimit:1000MS MemoryLimit:32768KB 64bitIOFormat:%I64d&%I64uSubmitStatusPracticeHDU1241DescriptionTheGeoSurvCompgeologicsurveycompanyisresponsiblefordetectingundergroundoildeposits.
wr132
·
2015-05-01 15:00
HDU
DFS
oil
Deposits
1241
文章标题 分类: dfs 2015-04-29 21:41 21人阅读 评论(0) 收藏
Description The GeoSurvComp geologic survey company is responsible for detecting underground
oil
deposits
·
2015-04-29 21:00
DFS
uva 572
Oil
Deposits
种子填充/************************************************Author:xryzEmail:
[email protected]
:4-1320:55:27FileName:\Users\xryz\Desktop\OilDeposits.cpp**********************************************
xinag578
·
2015-04-13 21:00
hdu 1241
Oil
Deposits
竞赛的时候一直吧题意错了。。。adjacent相邻的。。。妈的英语我最头痛啊啊啊~~~ 哎如果理解了题意就多对一个了 #include #include intn,m,num,visit[105][105],a[10000],q=0; charmap[105][105]; voiddfs(intx,inty) { if(x>=m||x=n||y<0||visit[x][y]||map[x][y]=
su20145104009
·
2015-04-10 19:00
poj
oil
poj1241
1241
Deposits
HDU-4185
Oil
Skimming Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768
·
2015-04-04 19:00
HDU
PKU 1562
Oil
Deposit
DescriptionTheGeoSurvCompgeologicsurveycompanyisresponsiblefordetectingundergroundoildeposits.GeoSurvCompworkswithonelargerectangularregionoflandatatime,andcreatesagridthatdividesthelandintonumeroussq
axiqia
·
2015-04-04 14:00
HDU-1241
Oil
Deposits
http://acm.hdu.edu.cn/showproblem.php?pid=1241 OilDepositsTimeLimit:2000/1000MS(Java/Others) MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):15444 AcceptedSubmission(s):8863P
·
2015-04-02 21:00
HDU
HDU 1241--
Oil
Deposits【DFS】
OilDepositsTimeLimit:2000/1000MS(Java/Others) MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):15293 AcceptedSubmission(s):8789ProblemDescriptionTheGeoSurvCompgeologicsurveycompanyisrespo
hpuhjh
·
2015-03-30 16:00
Oil
Deposits
OilDepositsTimeLimit:1000MS MemoryLimit:32768KB 64bitIOFormat:%I64d&%I64uSubmit Status Practice HDU1241DescriptionTheGeoSurvCompgeologicsurveycompanyisresponsiblefordetectingundergroundoildeposits.
Ash_Zheng
·
2015-03-30 14:00
【BZOJ 1177】 [Apio2009]
Oil
1177:[Apio2009]OilTimeLimit: 15Sec MemoryLimit: 162MBSubmit: 1044 Solved: 404[Submit][Status][Discuss]Description采油区域Siruseri政府决定将石油资源丰富的Navalur省的土地拍卖给私人承包商以建立油井。被拍卖的整块土地为一个矩形区域,被划分为M×N个小块。Siruseri地
Regina8023
·
2015-03-21 17:00
dp
分类讨论
OI
bzoj
HDU 1241
Oil
Deposits
ProblemDescriptionTheGeoSurvCompgeologicsurveycompanyisresponsiblefordetectingundergroundoildeposits.GeoSurvCompworkswithonelargerectangularregionoflandatatime,andcreatesagridthatdividesthelandintonum
lishuzhai
·
2015-03-15 19:00
搜索DFS
HDU1241
Oil
Deposits DFS
题目大意:有一块油田,@表示改点为原油,*表示空地,每相邻的原油点(即上,下,左,右,斜边共8个方向相邻任意一方向相邻都可),他们的品种是一样的,现在问你该油田共有多少种不同的原油品种。分析:枚举每一个坐标点,如果该点为原油,计数器++,同时以该点为起点进行深搜,标记和该点相连的原油点为*。这样,枚举完每一个点之后,我们也就找到了不同的原油品种的数目了。裸DFS就行,下面是我的代码:#includ
AC_Gibson
·
2015-03-11 15:00
HDU-
Oil
Deposits-油田搜索
问题及代码:ProblemC OilDepositsTimeLimit:2000/1000ms(Java/Other) MemoryLimit:65536/32768K(Java/Other)TotalSubmission(s):6 AcceptedSubmission(s):3Font: TimesNewRoman | Verdana | GeorgiaFontSize: ← →Prob
MIKASA3
·
2015-02-27 22:00
C++
递归
oil
Deposits
油田(
Oil
Deposits)
OilDepositsTimeLimit:3000MS MemoryLimit:Unknown 64bitIOFormat:%lld&%lluSubmit StatusDescriptionTheGeoSurvCompgeologicsurveycompanyisresponsiblefordetectingundergroundoildeposits.GeoSurvCompworkswitho
qq_15096707
·
2015-02-24 22:00
java
图
uva
油田
oil
Deposits
HDU 1241
Oil
Deposits
ProblemDescriptionTheGeoSurvCompgeologicsurveycompanyisresponsiblefordetectingundergroundoildeposits.GeoSurvCompworkswithonelargerectangularregionoflandatatime,andcreatesagridthatdividesthelandintonum
jtjy568805874
·
2015-02-19 16:00
图论
HDU
DFS
数据科学20:文本挖掘2
当然,我们也可以使用自己的方式,对该矩阵进行一些探索,比如,我们先来看看词条的频数:1.1词条频数1 2 3 4 freq=30])##[1]"market""mln""
oil
QQ415171148
·
2015-01-26 14:00
数据
大数据
机器学习
文本
hdu 4185 (
Oil
Skimming) 奇偶匹配
通过题意我们可以看出,一块地如果是油田,那么如果他要组成一块地,必须和周围的4块中的一块组成。那么可以得到,坐标和(i+j)是奇数的油田必须和坐标和为偶数的匹配才能组成一块地。那么我们可以把偶数油田看成是左边的点,奇数油田看成右边的点,如果左边的点能和右边的点组成一块地,就建一条边。这样可以得到一个2分图。对2图求最大匹配,就是答案。 求2分匹配有2中方法,匈牙利算法和网络流算法。这题2种算法
u012127882
·
2015-01-23 21:00
算法
ACM
图论
匹配
uva572 -
Oil
Deposits 入门经典II 第六章数据结构基础 例题6-12
题目:http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=7&page=show_problem&problem=513说明:用DFS求连通块,理解了之后挺简单的。#include #include #include usingnamespacestd; chars[110][110]; in
f1024042400
·
2015-01-18 18:00
codeforces 165B Burning Midnight
Oil
要注意的就是mid是取(lo+hi)/2的整数部分,所以在赋值hi=mid的时候不是标准的mid-1import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.text.DecimalFormat; public class CF165B { p
页永仲
·
2015-01-15 10:00
algorithms
php 数组
阅读更多1php中的创建数组$product=array('tires','
oil
','spark');//array()实际上是语言结构而不是函数2如果需要创建一个升序的排列的数字保存在一个数组中,可以使用
aichenglong
·
2015-01-09 00:00
php
数组
循环
多维数组
排序
php 数组
1 php中的创建数组 $product = array('tires','
oil
','spark');//array()实际上是语言结构而不 是函数 2 如果需要创建一个升序的排列的数字保存在一个数组中
aichenglong
·
2015-01-09 00:00
PHP
排序
数组
循环
多维数组
php 数组
阅读更多1php中的创建数组$product=array('tires','
oil
','spark');//array()实际上是语言结构而不是函数2如果需要创建一个升序的排列的数字保存在一个数组中,可以使用
aichenglong
·
2015-01-09 00:00
php
数组
循环
多维数组
排序
php 文件操作
$
oil
."\tspark:".$sparkqty."\n";fwrite($fp,$outputstring,strlen($o
aichenglong
·
2015-01-07 01:00
php
读取文件
写入文件
hdu1241
Oil
Deposits(dfs)
题目:http://acm.hdu.edu.cn/showproblem.php?pid=1241 这一题已经是第二道搜索的问题了,可是感觉对于搜索的问题处理起来还是有点不舒服。这道题还是参考了《挑战程序设计竞赛》上的例题才明白了,所以对于搜索的问题还有待提高。(还要多刷几题啊) 这一题我们采用的是dfs,先寻找@,找到之后便将它变为*,然后从8个方向进行遍历。之后只需将dfs的次数记录下来
luomingjun12315
·
2015-01-05 14:00
UVA - 572 -
Oil
Deposits (图的DFS!)
UVA-572OilDepositsTimeLimit: 3000MS MemoryLimit: Unknown 64bitIOFormat: %lld&%lluSubmit StatusDescription OilDeposits TheGeoSurvCompgeologicsurveycompanyisresponsiblefordetectingundergroundoildeposit
u014355480
·
2014-12-16 20:00
数据结构
图论
DFS
uva
traversal
UVA572 HDU1241 POJ1562
Oil
Deposits【DFS】
OilDeposits TheGeoSurvCompgeologicsurveycompanyisresponsiblefordetectingundergroundoildeposits.GeoSurvCompworkswithonelargerectangularregionoflandatatime,andcreatesagridthatdividesthelandintonumerous
u011676797
·
2014-12-11 17:00
HDU 1241
Oil
Deposits 【DFS】
OilDepositsTimeLimit:2000/1000MS(Java/Others) MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):13295 AcceptedSubmission(s):7651ProblemDescriptionTheGeoSurvCompgeologicsurveycompanyisrespo
u013806814
·
2014-12-08 06:00
1411272217-hd-
Oil
Deposits
OilDepositsTimeLimit:2000/1000MS(Java/Others) MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):13068 AcceptedSubmission(s):7571ProblemDescriptionTheGeoSurvCompgeologicsurveycompanyisrespo
wangluoershixiong
·
2014-11-28 07:00
hdu-1241
Oil
Deposits
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1241简单的深搜,但是我花了两个小时都没没有做出来,说出来都是泪啊 代码: #include #include #include usingnamespacestd; charmap[120][120]; intn,m; inttop[8][2]={{-1,0},{-1,-1},{-1,1},{0,1}
wojiaohuangyu
·
2014-11-25 11:00
PHP的数组操作
1.初始化1.1array()枚举成员$products = array('Tires', '
Oil
', 'Spark Plugs'); $prices = array('Tires' => 12, '
临峰不畏
·
2014-11-19 22:00
Oracle清除表的高水位线
--删除数据DELETEFROMGJDS_BUS_
OIL
_LOGWHEREVERSION<(13112-100);--压缩快move最好是在空
Carl_
·
2014-11-07 10:00
Warning: flock() expects parameter 1 to be resource
oil
\t" .$sparkqty."sparkplugs\t\$".$totalamount."\t".$address."\n";//openfileforappending$DOCUMEN
Wss0130
·
2014-10-17 09:00
HDOJ 1241
Oil
Deposits
题意:(dfs水题)一个n*m的矩阵,每个@点周围的8个相邻的点也是@就说明他们是连在一起的水洼,求一共有多少水洼。分析:dfs从前到后遍历的搜索,搜到一个就将其改为*以防重复计数然后在遍历的过程中记录一下水洼的数目即可。#include#includeusingnamespacestd;constintmaxn=105;intm,n;//intdx[4]={-1,0,0,1},dy[4]={0,
喵不理
·
2014-10-07 22:25
dfs
hdu 1241
Oil
Deposits(八方向简单深搜,对新手挺经典)
OilDepositsTimeLimit:2000/1000MS(Java/Others)MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):12461AcceptedSubmission(s):7245ProblemDescriptionTheGeoSurvCompgeologicsurveycompanyisresponsiblefo
u014492609
·
2014-09-23 20:00
DFS
深搜
初级搜索
Oil
Deposits(DFS)
Link::http://acm.hdu.edu.cn/showproblem.php?pid=1241Problem:OilDepositsTimeLimit:2000/1000MS(Java/Others)MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):12452AcceptedSubmission(s):7240ProblemD
林下的码路
·
2014-09-22 11:05
ACM
HDU
搜索
DFS
SQL的新知识
group by
oil
having count(*) >1 --功率大于或等于,按使用汽油量来排列分组,并且分组的数值大于的 select * from mydb.dbo.Productor insert
璞子
·
2014-09-20 16:00
sql
Oracle清除表的高水位线
--删除数据DELETEFROMGJDS_BUS_
OIL
_LOGWHEREVERSION<(13112-100);--压缩快move最好是在空
大扑棱蛾子
·
2014-08-26 16:35
Oracle
Oracle清除表的高水位线
--删除数据DELETEFROMGJDS_BUS_
OIL
_LOGWHEREVERSION<(13112-100);--压缩快move最好是在空
jaune161
·
2014-08-26 16:00
oracle
性能
高水位
HDU 4185
Oil
Skimming(二分图最大匹配)
HDU4185OilSkimming(二分图最大匹配)http://acm.hdu.edu.cn/showproblem.php?pid=4185题意: 有个N*N的字符矩阵,你必须用竖直或水平的1*2小矩阵去覆盖字符矩阵中相邻的两个”#”字符.且你用的1*2小矩阵不能重叠且只能覆盖”#”字符.问你最多能用多少个1*2的小矩阵?分析: 把原字符矩阵的所有”#”都编号看成一个一个
u013480600
·
2014-08-19 19:00
Algorithm
算法
ACM
UVA 572
Oil
Deposits
#include chardata[150][150]; introw,column,dir[8][2]={{0,-1},{0,1},{-1,0},{1,0},{-1,-1},{-1,1},{1,-1},{1,1}}; boolfind(intx,inty){ if(data[x][y]=='*'||x<0||x==row||y<0||y==column)//遇到边界、已来过、非油田就结束 re
kl28978113
·
2014-08-07 21:00
HDU 1241
Oil
Deposits (裸DFS)
OilDepositsTimeLimit:2000/1000MS(Java/Others) MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):12076 AcceptedSubmission(s):7005ProblemDescriptionTheGeoSurvCompgeologicsurveycompanyisrespo
Tc_To_Top
·
2014-08-04 12:00
DFS
hduoj
上一页
6
7
8
9
10
11
12
13
下一页
按字母分类:
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
其他