题目:http://acm.hdu.edu.cn/showproblem.php?pid=1241
给出一张地图,@代表有油,*代表没有。对于一个@,它的上下左右,左上,左下,右上,右下的位置若含有@,则它们属于同一块油田,问给出的地图中有几块油田?
#include<iostream>
#include<algorithm>
#include<cstring>
#include<string>
#include<cstdio>
#include<queue>
#define pii pair<int, int>
using namespace std;
const int INF = 0x3f3f3f3f;
const int MAXN = 107;
int dir[8][2] = {
1, 0, -1, 0, 0, 1, 0, -1,