锘??xml version="1.0" encoding="utf-8" standalone="yes"?>AV狠狠色丁香婷婷综合久久,无码专区久久综合久中文字幕,国产精品热久久毛片http://m.shnenglu.com/nxm1990/articles/159959.htmlis-programmeris-programmerFri, 11 Nov 2011 06:41:00 GMThttp://m.shnenglu.com/nxm1990/articles/159959.htmlhttp://m.shnenglu.com/nxm1990/comments/159959.htmlhttp://m.shnenglu.com/nxm1990/articles/159959.html#Feedback0http://m.shnenglu.com/nxm1990/comments/commentRss/159959.htmlhttp://m.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 鍙戣〃璇勮
]]>
欧美丰满熟妇BBB久久久| 亚洲国产成人久久精品影视| 四虎影视久久久免费| 伊人久久成人成综合网222| 久久精品国产亚洲AV不卡| 99久久99久久| 亚洲国产成人久久综合一区77| 性欧美丰满熟妇XXXX性久久久 | 久久人做人爽一区二区三区| 亚洲精品美女久久777777| 国产亚洲美女精品久久久| 久久午夜福利无码1000合集| 91精品国产91久久久久久青草| 香蕉99久久国产综合精品宅男自| 久久久国产乱子伦精品作者| 日日狠狠久久偷偷色综合0| 久久国产免费观看精品| 老色鬼久久亚洲AV综合| 久久久久久国产精品美女| 国产99久久九九精品无码| 久久99精品国产麻豆| 亚洲中文字幕无码久久2017| 久久亚洲2019中文字幕| 久久综合综合久久97色| 91久久精一区二区三区大全| 久久精品无码一区二区WWW| 亚洲国产精品无码久久青草| 国产精品va久久久久久久| 亚洲国产成人久久精品动漫| 成人久久综合网| 久久99久久99小草精品免视看| 久久精品国产亚洲av麻豆色欲 | 久久精品国产亚洲av麻豆小说| 久久久无码精品亚洲日韩蜜臀浪潮 | 大美女久久久久久j久久| 精品久久香蕉国产线看观看亚洲 | 午夜精品久久久久久久久| 亚洲精品乱码久久久久久蜜桃 | 久久久久亚洲AV成人片| 伊人久久大香线蕉综合Av| 亚洲欧美日韩久久精品第一区|