摘要: 点击打开链接 阅读全文
posted @ 2012-05-21 18:45 lishimin_come 阅读(124) 评论(0) 推荐(0) 编辑
摘要: AC啦!!!此题用到了两个DFS,刚开始一直认为两个DFS是交叉的,一直是错。后来从最简单的方面考虑,它遍历它的,它遍历它的,最后搞出来啦。#include <stdio.h> #include <memory.h> #include <stdlib.h> const int maxn=50+10; char map[maxn][maxn]; int visit[maxn][maxn]; int visit2[maxn][maxn]; int total[maxn]; int amount=0; int m,n,flag; int count1; int d 阅读全文
posted @ 2012-05-21 18:37 lishimin_come 阅读(115) 评论(0) 推荐(0) 编辑