Oil Deposits
Time Limit: 3000MS
Memory Limit: Unknown
64bit IO Format: %lld & %llu
Submit
Status
Description
The GeoSurvComp geologic survey company is responsibl...
分类:
其他好文 时间:
2015-05-09 10:21:15
阅读次数:
94
水题,求连通分量的个数,深搜一遍即可,之所以这么水还写下来,是因为样例一组有误的数据弄得我调试了一个多小时,白白浪费了很多精力和时间。最后一组数据的两个5后面多了一个空格:我用 getchar 来接收字符,所以因为它这个无故多出来的空格使得后面的字符全乱了,调试输出时才有了千奇百怪的结果,不得不.....
分类:
其他好文 时间:
2015-04-05 18:41:58
阅读次数:
130
Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 15291Accepted Submission(s): 8787Problem Descripti...
分类:
其他好文 时间:
2015-03-29 23:32:49
阅读次数:
168
http://acm.hdu.edu.cn/showproblem.php?pid=1241对每个还未访问的点bfs,到达的点都标为一块,最后统计有多少块即可#include #include #include using namespace std;const int maxn=101;const...
分类:
其他好文 时间:
2015-03-14 21:38:56
阅读次数:
134
因为这道题中给的数据比较小,所以可以直接用枚举的方式进行dfs搜索,每出现一个‘@’,就进行一次dfs的搜索,将所有相邻的‘@’全部变成‘*’。#include"iostream"#include"stdio.h"#include"algorithm"#include"string.h"#inclu...
分类:
其他好文 时间:
2015-03-11 21:15:16
阅读次数:
143
Oil Deposits
Time Limit:3000MS Memory Limit:0KB 64bit IO Format:%lld
& %llu
Submit Status
Description
The GeoSurvComp geologic survey company is responsible for detecting u...
分类:
其他好文 时间:
2015-02-13 18:34:08
阅读次数:
118
解题思路:第一道DFS的题目---参看了紫书和网上的题解--在找到一块油田@的时候,往它的八个方向找,直到在能找到的范围内没有油田结束这次搜索 可以模拟一次DFS,比如说样例 在i=0,j=1时,发现第一块油田,对它DFS,这样经过一次DFS,所有的油田都被找出来了,被记0Oil DepositsT...
分类:
其他好文 时间:
2015-01-31 16:02:45
阅读次数:
259
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
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
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