2011年8月19日

DFS解决POJ 2386

摘要: DescriptionDue to recent rains, water has pooled in various places in Farmer John's field, which is represented by a rectangle of N x M (1 <= N <= 100; 1 <= M <= 100) squares. Each square contains either water ('W') or dry land ('.'). Farmer John would like to figure 阅读全文

posted @ 2011-08-19 13:57 飞-虎 阅读(1051) 评论(0) 推荐(0) 编辑

BFS解决POJ 2386

摘要: DescriptionDue to recent rains, water has pooled in various places in Farmer John's field, which is represented by a rectangle of N x M (1 <= N <= 100; 1 <= M <= 100) squares. Each square contains either water ('W') or dry land ('.'). Farmer John would like to figure 阅读全文

posted @ 2011-08-19 13:27 飞-虎 阅读(1736) 评论(0) 推荐(0) 编辑

导航