clear all;
datasub=imread('c:\Users\Administrator\Desktop\dark_spots.png');
[row,col] = size(datasub);
flag = zeros(row,col);
flag=datasub;
figure,imagesc(imadjust(flag)),colormap(gray),title('SA...
分类:
其他好文 时间:
2014-11-11 22:46:22
阅读次数:
195
引领大数据连接、传送以及存储,提供创新半导体及软件解决方案的PMC®公司(纳斯达克代码:PMCS)今日宣布加入Canonical的 Ubuntu OpenStack 互通性测试实验室Interoperability Lab (OIL)。...
分类:
系统相关 时间:
2014-11-11 16:39:38
阅读次数:
339
The GeoSurvComp geologic survey company is responsible for detecting underground oil deposits. GeoSurvComp works with one large rectangular region of land at a time, and creates a grid that divides th...
分类:
其他好文 时间:
2014-11-08 18:21:48
阅读次数:
176
Time Limit: 1sec Memory Limit:32MBDescriptionCylinders (e.g. oil drums) (of radius 1 foot) are stacked in a rectangular bin. Each cylinder on an uppe....
分类:
其他好文 时间:
2014-10-14 16:02:08
阅读次数:
227
题目大意:输入一个二维网格,每个网格单元中只有两种字符'*'和'@','@'表示油田,'*'表示土地。求出网格中共有多少块油田?注意:所有横向,竖向,对角线方向连同的
油田算一块油田。
算法思想:
广度优先搜索,扫描每一个网格,判断该网格是否是油田且未被标记,若是则计数加1并且进行广搜标记所有与其相连通的油田,若不是则只标记。扫描完所有的网...
分类:
其他好文 时间:
2014-10-11 14:29:25
阅读次数:
181
题意 求n*m矩阵中'@'连通块的个数 两个‘@’在一个九宫格内就属于一个连通块
最基础的DFS 遇到@就递归扫描周围8个并标记当前格子已访问 然后就得到答案了
#include
using namespace std;
const int N = 110;
char mat[N][N];
int dfs(int r, int c)
{
if(mat[r][c] != '@'...
分类:
其他好文 时间:
2014-10-10 19:06:14
阅读次数:
142
简单的DFS
Oil Deposits
Time Limit: 1000MS
Memory Limit: 10000K
Total Submissions: 12801
Accepted: 6998
Description
The GeoSurvComp geologic survey company is resp...
分类:
其他好文 时间:
2014-10-01 12:53:11
阅读次数:
152
题目大意: 统计相邻(上下左右)的‘#’的对数。解法: 与题目hdu1507 Uncle Tom's Inherited Land*类似,需要用奇偶建图。就是行+列为奇数的作为X集合,偶尔作为Y集合,都是‘#’就连边。最后求最大匹配。 数据有点大,直接建图会出错(我试过)。可以按照‘#’出现的...
分类:
其他好文 时间:
2014-09-24 21:57:07
阅读次数:
183
Oil Deposits
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 12461 Accepted Submission(s): 7245
Problem Description
The GeoSurvComp ...
分类:
其他好文 时间:
2014-09-23 21:21:15
阅读次数:
155
第一步:创建Store数据源
var myData = [];
myData.push({ 'name': '1', 'Oil_Production': '30', 'Water_Injection': '55', 'Gas_Production': '23' });
myData.push({ 'name': '2', 'Oil_Production': '20', 'Wa...
分类:
Web程序 时间:
2014-09-19 15:38:55
阅读次数:
262