
迷宫dfs
大小vip
这个作者很懒,什么都没留下…
展开
-
Oil Deposits HDU - 1241 (dfs)
The GeoSurvComp geologic survey company is responsible for detecting underground oil deposits. GeoSurvComp works with one large rectangular region of land at a time, and creates a grid that divides th...原创 2019-07-26 15:45:42 · 697 阅读 · 0 评论 -
棋盘游戏
链接:https://ac.nowcoder.com/acm/contest/953/D 来源:牛客网 题目描述 在一个4 \times44×4的棋盘上有8个黑棋和8个白棋,当且仅当两个格子有公共边,这两个格子上的棋是相邻的。移动棋子的规则是交换相邻两个棋子。给出一个初始棋盘和一个最终棋盘,请找出一个最短的移动序列使初始棋盘变为最终棋盘。 输入描述: 前四行,每行4个数字(1或者0),描述了初始棋...原创 2019-08-15 15:42:48 · 1181 阅读 · 0 评论