锘??xml version="1.0" encoding="utf-8" standalone="yes"?>国产精品xxxx国产喷水亚洲国产精品无码久久一区 ,久久久久国产一区二区三区,久久精品国产亚洲麻豆http://www.shnenglu.com/nxm1990/articles/159959.htmlis-programmeris-programmerFri, 11 Nov 2011 06:41:00 GMThttp://www.shnenglu.com/nxm1990/articles/159959.htmlhttp://www.shnenglu.com/nxm1990/comments/159959.htmlhttp://www.shnenglu.com/nxm1990/articles/159959.html#Feedback0http://www.shnenglu.com/nxm1990/comments/commentRss/159959.htmlhttp://www.shnenglu.com/nxm1990/services/trackbacks/159959.html涓昏璇ラ琚垜鎯沖鏉備簡錛屼竴寮濮嬩互涓烘槸涓嶅悓褰㈢姸鐨勪釜鏁幫紝鍒頒笉鍚屼釜鏁扮殑涓暟錛屾渶鍚庛傘傘傚師鏉ユ槸闂湁澶氬皯鍧楋紒
鍏釜if錛岃屼笉鏄痠f-else if!
#include<iostream>
#include
<cstdio>
#include
<cstring>
using namespace std;
char map[105][105];
bool used[105][105];
bool dep[200];
int m,n;
bool check(int a,int b){
  
return  a > 0 && a <= m && b > 0 && b <= n && !used[a][b] && map[a][b];
}

void init(){
  memset(map,
0,sizeof(map));
  memset(used,
0,sizeof(used));
  memset(dep,
0,sizeof(dep));
}
int dfs(int a,int b){
  
int res=1;
  
if(check(a+1,b)){
    used[a
+1][b] = true;
    res 
+= dfs(a+1,b);
  }
  
if(check(a-1,b)){
    used[a
-1][b] = true;
    res 
+= dfs(a-1,b);
  }
  
if(check(a,b-1)){
    used[a][b
-1= true;
    res 
+= dfs(a,b-1);
  }
  
if(check(a,b+1)){
    used[a][b
+1= true;
    res 
+= dfs(a,b+1);
  }
  
if(check(a-1,b-1)){
    used[a
-1][b-1= true;
    res 
+= dfs(a-1,b-1);
  }
  
if(check(a+1,b-1)){
    used[a
+1][b-1= true;
    res 
+= dfs(a+1,b-1);
  }
  
if(check(a-1,b+1)){
    used[a
-1][b+1= true;
    res 
+= dfs(a-1,b+1);
  }
  
if(check(a+1,b+1)){
    used[a
+1][b+1= true;
    res 
+= dfs(a+1,b+1);
  }
  
return res;
}

int main(){
  
while(scanf("%d%d",&m,&n)!=EOF && m != 0){
    
char al;
    
char line[200];
    
int c=0;
    init();
    
for(int i = 1; i <= m ;i++){
      scanf(
"%s",line);
      
for(int j = 1; j <= n; j++){
    
if(line[j-1== '@')map[i][j] = true;
      }
    }
    
for(int i = 1; i <= m ;i++)
      
for(int j = 1; j <= n; j++){
    
if(check(i,j)){
      
//cout << i <<' '<<j <<endl;
      used[i][j] = true;
      
int t=dfs(i,j);
      dep[t] 
= true;
      c
++;
    }

      }

    
/*for(int i = 1; i <= 199; i++){
      if(dep[i]) c++;
      }
*/
    printf(
"%d\n",c);
  }
}
    


is-programmer 2011-11-11 14:41 鍙戣〃璇勮
]]>
久久综合久久鬼色| 久久中文字幕视频、最近更新| 熟妇人妻久久中文字幕| 亚洲va久久久噜噜噜久久天堂| 无码人妻久久一区二区三区免费| 久久综合久久综合九色| 人妻丰满?V无码久久不卡| 一本色道久久HEZYO无码| 亚洲国产精品人久久| 久久亚洲精品无码aⅴ大香| 国产精品gz久久久| 久久人人爽人人爽人人片AV不| 韩国三级中文字幕hd久久精品 | 久久福利片| 精品久久亚洲中文无码| 人人狠狠综合久久亚洲| 99久久精品午夜一区二区| 亚洲熟妇无码另类久久久| 久久久久人妻精品一区三寸蜜桃 | 狠狠色综合久久久久尤物| 亚洲成色www久久网站夜月| 日日狠狠久久偷偷色综合免费| 国产亚洲色婷婷久久99精品| 777午夜精品久久av蜜臀 | 久久国产成人精品国产成人亚洲| 中文字幕无码免费久久| 国产美女亚洲精品久久久综合| 国产精品亚洲综合专区片高清久久久| 亚洲AV乱码久久精品蜜桃| 日韩精品久久久久久久电影| 色天使久久综合网天天 | 久久中文字幕无码专区| 久久国产综合精品五月天| 国产ww久久久久久久久久| 成人精品一区二区久久久| 日韩精品国产自在久久现线拍| 国产精品久久久久久搜索 | 久久久久国产精品人妻| 久久亚洲国产精品成人AV秋霞 | 亚洲国产成人久久笫一页| 久久亚洲国产成人影院网站|