文件名称:SatellitePhotographsT2
-
所属分类:
- 标签属性:
- 上传时间:2013-06-03
-
文件大小:1.9kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
计算"*","."组成的方形中,四邻域"*"的最大面积-Farmer John purchased satellite photos of W x H pixels of his farm (1 <= W <= 80, 1 <= H <= 1000) and wishes to determine the largest contiguous (connected) pasture. Pastures are contiguous when any pair of pixels in a pasture can be connected by traversing adjacent vertical or horizontal pixels that are part of the pasture. (It is easy to create pastures with very strange shapes, even circles that surround other circles.)
Each photo has been digitally enhanced to show pasture area as an asterisk ( * ) and non-pasture area as a period ( . ). Here is a 10 x 5 sample satellite photo:
..*.....**
.**..*****
.*...*....
..****.***
..****.***
This photo shows three contiguous pastures of 4, 16, and 6 pixels. Help FJ find the largest contiguous pasture in each of his satellite photos.
Each photo has been digitally enhanced to show pasture area as an asterisk ( * ) and non-pasture area as a period ( . ). Here is a 10 x 5 sample satellite photo:
..*.....**
.**..*****
.*...*....
..****.***
..****.***
This photo shows three contiguous pastures of 4, 16, and 6 pixels. Help FJ find the largest contiguous pasture in each of his satellite photos.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
SatellitePhotographsT2.cpp
SatellitePhotographsT1.cpp
SatellitePhotographsT3.cpp
SatellitePhotographsT1.cpp
SatellitePhotographsT3.cpp
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.