摘要: Given a 2D board containing 'X' and 'O', capture all regions surrounded by 'X'.A region is captured by flipping all 'O's into 'X's in that surrounded ... 阅读全文
posted @ 2015-04-14 16:46 lysr__tlp 阅读(288) 评论(0) 推荐(0) 编辑
摘要: 题目链接==》 http://www.bnuoj.com/v3/problem_show.php?pid=4299题意:一个X*Y棋盘上放了N个queens,再放一个queen,有几个空格可以放,前提是和已经在棋盘上的queen不同行不同列不同斜线思路:每个点所在四条直线上,不能再放queen,所以... 阅读全文
posted @ 2015-04-14 09:19 lysr__tlp 阅读(263) 评论(0) 推荐(0) 编辑