2012年10月11日

hdu 4158 GO

摘要: http://acm.hdu.edu.cn/showproblem.php?pid=4158题意:给一个n*n的棋盘,再给一些黑白棋的位置,求哪个着色完全围着的空白多。(难道这就是围棋?)思路:模拟~~~View Code #include<stdio.h>#include<string.h>#include<iostream>#include<queue>using namespace std;const int maxn = 30;int as[maxn][maxn];int dx[] = {1,-1,0,0};int dy[] = {0,0 阅读全文

posted @ 2012-10-11 10:41 aigoruan 阅读(135) 评论(0) 推荐(0)

导航