摘要: 题目的意思就是简单的扫雷游戏,每到一个点,便判断该点是否是k=0的点,若是则以这个点为中心自动触发它周围的与它相邻八个点,若在这八个点中有雷,则该点不触发;若该点不是k=0的点,则不自动触发它周围的点。(附代码) 1 # include 2 # include 3 # include 4 # include 5 # include 6 using namespace std; 7 8 struct Point{ 9 int x, y; 10 }; 11 12 int n; 13 int startx, starty; 14 int step[8][2] ... 阅读全文
posted @ 2013-10-05 13:50 shihuai_2 阅读(253) 评论(0) 推荐(0) 编辑