Codeforces Round #290 (Div. 2)B - Fox And Two Dots——并查集/搜索
http://codeforces.com/contest/510/problem/B给你一张地图,判断是否存在一个圈我的劣质代码
#include
usingnamespacestd;
intn,m;
charmp[55][55];
intvis[55][55];
intdirx[]={0,0,1,-1};
intdiry[]={1,-1,0,0};
boolflag;
intsx,sy;
ch