![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
DFS
szszsz1997
假如编程易懂得,那么程序员就不会热情地写出注释,也不会有得到编程的快乐。
展开
-
ZOJ Problem Set - 2100 (DFS)
ZOJ Problem Set - 2100题意:一块田地,播种机从左上出发,不能重复走,不能走石头。判断能不能。思路:简单的dfs。细节:走过的标记成石头,不行就改回来。#include #include #include using namespace std;int n, m;char a[10][10];int num , flag;void dfs(in原创 2017-07-08 20:56:14 · 175 阅读 · 0 评论 -
POJ - 2386 Lake Counting (DFS)
Lake CountingTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 36172 Accepted: 17965DescriptionDue to recent rains, water has pooled in various places i原创 2017-07-25 19:57:31 · 183 阅读 · 0 评论 -
POJ - 1321 棋盘问题(DFS)
棋盘问题Time Limit: 1000MS Memory Limit: 10000KTotal Submissions: 49948 Accepted: 24195Description在一个给定形状的棋盘(形状可能是不规则的)上面摆放棋子,棋子没有区别。要求摆放时任意的两个棋子不能放在棋盘中的同一行或者同一列,请编原创 2017-08-21 17:50:31 · 249 阅读 · 0 评论