#include #include #define MAX 110#define OIL true#define BLANK falseusing namespace std;bool oil_map[MAX][MAX];int dir_map[8][2]={ {1,0},{-1,0},{0,1},...
分类:
其他好文 时间:
2015-01-29 12:36:55
阅读次数:
157
Oil Deposits
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 cre...
分类:
其他好文 时间:
2015-01-20 17:58:24
阅读次数:
135
用DFS求连通块也是比较典型的问题, 求多维数组连通块的过程也称为--“种子填充”。我们给每次遍历过的连通块加上编号, 这样就可以避免一个格子访问多次。比较典型的问题是”八连块问题“。即任意两格子所在位置相邻(上下左右对角共八个方位),则在一个连通块。典型例题:HDU 1241 Oil Deposi...
分类:
其他好文 时间:
2015-01-18 15:34:36
阅读次数:
279
Description The GeoSurvComp geologic survey company is responsible for detecting underground oil deposits. GeoSurvComp works with one large rectang...
分类:
其他好文 时间:
2015-01-16 23:46:25
阅读次数:
291
1533: Oil DepositsTime Limit: 1 SecMemory Limit: 64 MBSubmit: 477Solved: 303DescriptionThe GeoSurvComp geologic survey company is responsible for dete...
分类:
其他好文 时间:
2015-01-15 17:50:28
阅读次数:
144
这个问题挺有名的,贴代码:#include "stdio.h"void main( ){ //FILE *fp; int i=1; double x=500.0,s=1000.0,oil; //fp=fopen("data.dat","w"); do { //fprintf(fp,"No=%-7d....
分类:
其他好文 时间:
2015-01-09 20:46:24
阅读次数:
156
Oil Deposits
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 13689 Accepted Submission(s): 7871
Problem Description
The GeoSurvComp ...
分类:
其他好文 时间:
2015-01-02 17:36:24
阅读次数:
179
#include#include#include#include#includeusing namespace std;char mat[10][10];int vis[10][10];int ok,dx,dy;int m,n,d;int op[4][2]={0,1,1,0,0,-1,-1,0};b...
分类:
其他好文 时间:
2014-12-23 20:52:26
阅读次数:
156
DescriptionThe GeoSurvComp geologic survey company is responsible for detecting underground oil deposits. GeoSurvComp works with one large rectangular...
分类:
移动开发 时间:
2014-12-18 21:53:04
阅读次数:
230
UVA - 572
Oil Deposits
Time Limit: 3000MS
Memory Limit: Unknown
64bit IO Format: %lld & %llu
Submit Status
Description
Oil Deposits
T...
分类:
其他好文 时间:
2014-12-16 22:47:56
阅读次数:
629