锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲午夜极品,久久er99精品,午夜一级在线看亚洲http://www.shnenglu.com/Going/category/10322.htmlzh-cnFri, 08 May 2009 19:32:16 GMTFri, 08 May 2009 19:32:16 GMT60hdu 1983 Kaitou Kid - The Phantom Thief (2)http://www.shnenglu.com/Going/archive/2009/05/08/82276.htmlGoingGoingFri, 08 May 2009 13:41:00 GMThttp://www.shnenglu.com/Going/archive/2009/05/08/82276.htmlhttp://www.shnenglu.com/Going/comments/82276.htmlhttp://www.shnenglu.com/Going/archive/2009/05/08/82276.html#Feedback0http://www.shnenglu.com/Going/comments/commentRss/82276.htmlhttp://www.shnenglu.com/Going/services/trackbacks/82276.html闃呰鍏ㄦ枃

Going 2009-05-08 21:41 鍙戣〃璇勮
]]>
zju 2743 Bubble Shooterhttp://www.shnenglu.com/Going/archive/2009/05/07/82122.htmlGoingGoingThu, 07 May 2009 01:44:00 GMThttp://www.shnenglu.com/Going/archive/2009/05/07/82122.htmlhttp://www.shnenglu.com/Going/comments/82122.htmlhttp://www.shnenglu.com/Going/archive/2009/05/07/82122.html#Feedback0http://www.shnenglu.com/Going/comments/commentRss/82122.htmlhttp://www.shnenglu.com/Going/services/trackbacks/82122.html闃呰鍏ㄦ枃

Going 2009-05-07 09:44 鍙戣〃璇勮
]]>
zju 2849 Attack of Panda Virushttp://www.shnenglu.com/Going/archive/2009/05/05/81921.htmlGoingGoingTue, 05 May 2009 03:20:00 GMThttp://www.shnenglu.com/Going/archive/2009/05/05/81921.htmlhttp://www.shnenglu.com/Going/comments/81921.htmlhttp://www.shnenglu.com/Going/archive/2009/05/05/81921.html#Feedback0http://www.shnenglu.com/Going/comments/commentRss/81921.htmlhttp://www.shnenglu.com/Going/services/trackbacks/81921.html#include<iostream>
#include
<queue>
using namespace std;

int mat[502][502];//瀛樿緭鍏ョ煩闃?/span>
typedef struct node 
{
    
int x,y;
    
int type;
    
int day;
    friend 
bool operator < (node a,node b)
    
{
        
if(a.day != b.day)
            
return a.day > b.day; //鍏堟寜澶╂暟鎺掑簭
        else
            
return a.type > b.type;
    }

}
Node;//浼樺厛闃熷垪鐨勮妭鐐?/span>
int mark[502][502];

int dir[4][2= {1,0,-1,0,0,1,0,-1};
int m,n;  
int sum[250002];//瀛樺偍鍑犲彿鐥呮瘨鎰熸煋鐨勭數鑴戞暟
priority_queue<Node> Q;

void init()
{
    Node p;
    
int i,j;
    memset(sum,
0,sizeof(sum));//涓瀹氳鍏ㄩ儴娓呯┖錛屽垏璁板垏璁?/span>
    for(i = 1;i <=m ;i++)
        
for(j = 1;j <= n;j++)
        
{
            scanf(
"%d",&mat[i][j]);
            
if(mat[i][j] > 0)//灝嗗凡緇忔劅鏌撶殑鐢佃剳鍏ラ槦
            {
                p.x 
= i;
                p.y 
= j;
                p.type 
= mat[i][j];
                p.day 
= 1;
                Q.push(p);
                sum[mat[i][j]]
++;
            }
                
        }

}


void Bfs()
{
    
int k,dmax;
    Node p,q;
    
while(!Q.empty())
    
{
        q 
= Q.top();
        Q.pop();
        dmax 
= -100000000;
        
for(k = 0;k < 4;k++)
        
{
            p.x 
= q.x + dir[k][0];
            p.y 
= q.y + dir[k][1];
            
if(p.x >= 1 && p.x <= m && p.y >= 1 && p.y <= n)
            
{
                
if(mat[p.x][p.y] < 0)
                
{
                    
if(mat[p.x][p.y] + q.day >= 0)
                    
{
                        p.type 
= q.type;
                        q.day 
= q.day;
                        mat[p.x][p.y] 
= p.type;
                        Q.push(p);
                        sum[mat[p.x][p.y]] 
++;
                    }

                    
else if(mat[p.x][p.y] > dmax )//瀵繪壘鍏跺懆鍥存渶蹇紶鏌撶殑鏈哄瓙~
                    {
                        dmax 
= mat[p.x][p.y];
                    }

                }

            }

        }
//for()
        if(dmax != -100000000 )//浼樺寲錛屾壘鍒板懆鍥存渶蹇鎰熸煋鐨勭數鑴戠殑澶╂暟鍏ラ槦
        {
            q.day 
= dmax * (-1);
            Q.push(q);
        }

    }
//while()
}


int main()
{
    
while(cin>>m>>n)
    
{
        
int t;
        
int h;
        init();
        Bfs();
        
int i;
        cin
>>t;
        
for(i = 0;i < t;i++)
        
{
            scanf(
"%d",&h);
            printf(
"%d\n",sum[h]);
        }

    }

    
return 0;
}


Going 2009-05-05 11:20 鍙戣〃璇勮
]]>
hdu 1195 Open the Lockhttp://www.shnenglu.com/Going/archive/2009/04/23/80836.htmlGoingGoingThu, 23 Apr 2009 05:05:00 GMThttp://www.shnenglu.com/Going/archive/2009/04/23/80836.htmlhttp://www.shnenglu.com/Going/comments/80836.htmlhttp://www.shnenglu.com/Going/archive/2009/04/23/80836.html#Feedback2http://www.shnenglu.com/Going/comments/commentRss/80836.htmlhttp://www.shnenglu.com/Going/services/trackbacks/80836.html闃呰鍏ㄦ枃

Going 2009-04-23 13:05 鍙戣〃璇勮
]]>
hdu 1195 Open the Lockhttp://www.shnenglu.com/Going/archive/2009/04/23/80837.htmlGoingGoingThu, 23 Apr 2009 05:05:00 GMThttp://www.shnenglu.com/Going/archive/2009/04/23/80837.htmlhttp://www.shnenglu.com/Going/comments/80837.htmlhttp://www.shnenglu.com/Going/archive/2009/04/23/80837.html#Feedback0http://www.shnenglu.com/Going/comments/commentRss/80837.htmlhttp://www.shnenglu.com/Going/services/trackbacks/80837.html闃呰鍏ㄦ枃

Going 2009-04-23 13:05 鍙戣〃璇勮
]]>
hdu 1241 Oil Depositshttp://www.shnenglu.com/Going/archive/2009/04/23/80834.htmlGoingGoingThu, 23 Apr 2009 05:01:00 GMThttp://www.shnenglu.com/Going/archive/2009/04/23/80834.htmlhttp://www.shnenglu.com/Going/comments/80834.htmlhttp://www.shnenglu.com/Going/archive/2009/04/23/80834.html#Feedback0http://www.shnenglu.com/Going/comments/commentRss/80834.htmlhttp://www.shnenglu.com/Going/services/trackbacks/80834.html#include<iostream>
#include
<string>
using namespace std;

int sum,m,n;
bool used[102][102];
char maps[102][102];
int a[8][2= {{0,1},{0,-1},{1,0},{-1,0},{1,1},{1,-1},{-1,1},{-1,-1}};

void Dfs(int i,int j)
{
    
int k;
    
int s,t;
    
if(used[i][j] == true)
        
return;
    
for(k = 0;k < 8;k++)
    
{
        s 
= i + a[k][0];
        t 
= j + a[k][1];
            
        
if(s < 0 || s >= n || t < 0 || t >= m)
            
continue;

        
if(maps[s][t] == '@' && used[s][t] == false)
        
{
            used[s][t] 
= true;
            Dfs(s,t);
        }

    }
//while(!Q.empty())
}


int main()
{
    
int i,j;
    
while(cin>>n>>m)
    
{
        
if(n == 0 && m == 0)
            
break;
        
for(i = 0;i < n;i++)
            scanf(
"%s",maps[i]);
 
        
for(i = 0;i < n;i++)
            
for(j = 0;j < m;j++)
                used[i][j] 
= false;
     
        sum 
= 0;
        
for(i = 0;i < n;i++)
        
{
            
for(j = 0;j < m;j++)
            
{
                
if(maps[i][j] == '@' && used[i][j] == false)
                
{
                    used[i][j] 
= true;
                    Dfs(i,j);
                    sum
++;
                }

            }


        }

        printf(
"%d\n",sum);
    }

    
return 0;
}



/*
#include<iostream>
#include<queue>
#include<string>
using namespace std;

typedef struct node
{
    int x,y;
}Node;

queue<Node> Q;
int sum,m,n;
bool used[102][102];
char maps[102][102];
int a[8][2] = {{0,1},{0,-1},{1,0},{-1,0},{1,1},{1,-1},{-1,1},{-1,-1}};

void Bfs(int i,int j)
{
    Node p,q;
    int k;
    int s,t;
    p.x = i;
    p.y = j;
    Q.push(p);
    while(!Q.empty())
    {
        q = Q.front();
        Q.pop();

        for(k = 0;k < 8;k++)
        {
            s = q.x + a[k][0];
            t = q.y + a[k][1];
            
            if(s < 0 || s >= n || t < 0 || t >= m)
                continue;

            if(maps[s][t] == '@' && used[s][t] == false)
            {
                used[s][t] = true;
                p.x = s;
                p.y = t;
                Q.push(p);
            }
        }
    }//while(!Q.empty())
}

int main()
{
    int i,j;
    while(cin>>n>>m)
    {
        if(n == 0 && m == 0)
            break;
        for(i = 0;i < n;i++)
            //cin>>maps[i];
            scanf("%s",maps[i]);
 
        for(i = 0;i < n;i++)
            for(j = 0;j < m;j++)
                used[i][j] = false;
     
        sum = 0;
        for(i = 0;i < n;i++)
        {
            for(j = 0;j < m;j++)
            {
                if(maps[i][j] == '@' && used[i][j] == false)
                {
                    used[i][j] = true;
                    Bfs(i,j);
                    sum++;
                }
            }

        }
        printf("%d\n",sum);
        //cout<<sum<<endl;
    }
    return 0;
}
*/



Going 2009-04-23 13:01 鍙戣〃璇勮
]]>
av国内精品久久久久影院| 久久久久久午夜成人影院| 国产亚洲精久久久久久无码77777 国产亚洲精品久久久久秋霞 | 色诱久久久久综合网ywww| 精品综合久久久久久97超人| 四虎国产精品成人免费久久| 久久久久久亚洲精品不卡| 久久夜色精品国产亚洲| 久久精品这里热有精品| 日本加勒比久久精品| 69久久夜色精品国产69| 色播久久人人爽人人爽人人片aV| 国产亚州精品女人久久久久久| 久久久无码精品午夜| 久久久免费精品re6| 久久乐国产精品亚洲综合| 久久天天躁狠狠躁夜夜躁2O2O| 中文字幕亚洲综合久久2| 少妇久久久久久被弄高潮| 亚洲国产综合久久天堂| 久久本道伊人久久| 91精品国产高清久久久久久io| 亚洲国产成人久久综合一区77| 亚洲国产精品久久| 国产韩国精品一区二区三区久久| 亚洲AV乱码久久精品蜜桃| 天堂无码久久综合东京热| 国产真实乱对白精彩久久| 精品久久久久久久久中文字幕| 亚洲色婷婷综合久久| 久久人妻AV中文字幕| 无码人妻久久一区二区三区蜜桃| 久久伊人亚洲AV无码网站| 久久人妻少妇嫩草AV无码蜜桃| 国产精品免费久久久久影院| 色成年激情久久综合| 伊人久久大香线蕉影院95| 99热都是精品久久久久久| 久久乐国产精品亚洲综合| 久久综合给合综合久久| 超级97碰碰碰碰久久久久最新|