摘要:
题意:给出一个矩阵,其中有些格子干燥、有些潮湿。 如果一个潮湿的格子的相邻的四个方向有格子也是潮湿的,那么它们就可以构成更大 的湖泊,求最大的湖泊。 也就是求出最大的连在一块儿的潮湿的格子的数目。 阅读全文
posted @ 2016-05-23 13:20
|瑾诺学长|
阅读(226)
评论(0)
推荐(0)
摘要:
#include #include using namespace std; int n,k,bb[8]={0},sum=0; char aa[8][8]; void dfs(int a,int b) { if(b>=n) { if(a==k) sum++; return; } for(int i=0... 阅读全文
posted @ 2016-05-23 11:31
|瑾诺学长|
阅读(565)
评论(0)
推荐(0)

浙公网安备 33010602011771号