poj-1856 Sea Battle *
摘要:
/* * bfs * 又是一道水题。。1A * */#include <cstdio>#include <cstring>using namespace std;const int MAXN = 1000 + 5;int r, c; //同题意bool vis[MAXN][MAXN];char map[MAXN][MAXN];// sx,sy:矩形左上角。。ex,ey:矩形右下角..tot:矩形数。。。flag:是否正确int sx, sy, ex, ey, tot, flag;//获得ex,ey.. 若不是矩形,返回falsebool inline get_cor(i 阅读全文
posted @ 2011-07-16 21:06 龙豆 阅读(330) 评论(0) 推荐(0)
浙公网安备 33010602011771号