锘??xml version="1.0" encoding="utf-8" standalone="yes"?>久久国产成人午夜AV影院,99久久精品国产免看国产一区,亚洲а∨天堂久久精品http://www.shnenglu.com/Dreams/archive/2009/04/10/79515.htmlDreamSkyDreamSkyFri, 10 Apr 2009 08:03:00 GMThttp://www.shnenglu.com/Dreams/archive/2009/04/10/79515.htmlhttp://www.shnenglu.com/Dreams/comments/79515.htmlhttp://www.shnenglu.com/Dreams/archive/2009/04/10/79515.html#Feedback1http://www.shnenglu.com/Dreams/comments/commentRss/79515.htmlhttp://www.shnenglu.com/Dreams/services/trackbacks/79515.html闃呰鍏ㄦ枃

DreamSky 2009-04-10 16:03 鍙戣〃璇勮
]]>
hdu 1075 What Are You Talking Abouthttp://www.shnenglu.com/Dreams/archive/2009/04/09/79354.htmlDreamSkyDreamSkyThu, 09 Apr 2009 09:43:00 GMThttp://www.shnenglu.com/Dreams/archive/2009/04/09/79354.htmlhttp://www.shnenglu.com/Dreams/comments/79354.htmlhttp://www.shnenglu.com/Dreams/archive/2009/04/09/79354.html#Feedback2http://www.shnenglu.com/Dreams/comments/commentRss/79354.htmlhttp://www.shnenglu.com/Dreams/services/trackbacks/79354.html闃呰鍏ㄦ枃

DreamSky 2009-04-09 17:43 鍙戣〃璇勮
]]>
hdu 1251 緇熻闅鵑http://www.shnenglu.com/Dreams/archive/2009/04/09/79341.htmlDreamSkyDreamSkyThu, 09 Apr 2009 06:17:00 GMThttp://www.shnenglu.com/Dreams/archive/2009/04/09/79341.htmlhttp://www.shnenglu.com/Dreams/comments/79341.htmlhttp://www.shnenglu.com/Dreams/archive/2009/04/09/79341.html#Feedback0http://www.shnenglu.com/Dreams/comments/commentRss/79341.htmlhttp://www.shnenglu.com/Dreams/services/trackbacks/79341.htmlhttp://acm.hdu.edu.cn/showproblem.php?pid=1251
#include<iostream>
using namespace std;
struct dictree
{
    
struct dictree *child[26];
    
int num;
}
;
int main()
{
    
int i;
    
char word[11];
    
struct dictree root;// = new dictree;
    for(i=0;i<26;i++)
        root.child[i] 
= NULL;
    root.num 
= 0;
    
while(cin.getline(word,11),word[0])//杈撳叆鏂規硶寰坣iu
    {
        
struct dictree *now = &root;
        
char *tmp = word;
        
while(*tmp)
        
{
            
if(now->child[*tmp-'a']==NULL)
            
{
                now
->child[*tmp-'a']=new dictree;
                now
=now->child[*tmp-'a'];
                
for(i=0;i<26;i++)
                    now
->child[i] = NULL;
                now
->num = 1;
            }

            
else
            
{
                now
=now->child[*tmp-'a'];
                now
->num ++;
            }

            tmp
++;
        }

    }
    
    
while(cin.getline(word,11),cin && word[0])
    
{
        
int mins=100000;
        
struct dictree *now = &root;
        
char *tmp = word;
        
while(*tmp)
        
{
            now
=now->child[*tmp-'a'];
            
if(!now)
            
{
                mins 
= 0;
                
break;
            }

            
if(now->num < mins)
                mins 
= now->num;
            tmp
++;
        }

        cout
<<mins<<endl;
    }

    
return 0;
}


DreamSky 2009-04-09 14:17 鍙戣〃璇勮
]]>
hdu 1800 Flying to the Marshttp://www.shnenglu.com/Dreams/archive/2009/04/09/79340.htmlDreamSkyDreamSkyThu, 09 Apr 2009 06:15:00 GMThttp://www.shnenglu.com/Dreams/archive/2009/04/09/79340.htmlhttp://www.shnenglu.com/Dreams/comments/79340.htmlhttp://www.shnenglu.com/Dreams/archive/2009/04/09/79340.html#Feedback0http://www.shnenglu.com/Dreams/comments/commentRss/79340.htmlhttp://www.shnenglu.com/Dreams/services/trackbacks/79340.htmlhttp://acm.hdu.edu.cn/showproblem.php?pid=1800
/*
5
1001
0010
0110
2
4
*/

#include
<iostream>
using namespace std;
int i;
struct dictree 
{
    
struct dictree *child[10];
    
int num;
    dictree()
    
{
        
for(i=0;i<10;i++)
            child[i]
=NULL;
        num 
= 0;
    }

    
~dictree()
    
{
        
for(i=0;i<10;i++)
            
if(child[i])
                delete child[i];
    }

}
;
int main()
{
    
int n;
    
while(cin>>n)
    
{
        
int maxs = 0;
        
char digit[31];
        
struct dictree root;
        
while(n--)
        
{
            cin
>>digit;
            
char *tmp = digit;
            
while(*tmp == '0')//鍘繪帀鍓嶇紑0
                tmp++;
            
struct dictree *now = &root;
            
while(*tmp>='0' && *tmp<='9')//娉ㄦ剰涓嶈兘鍐欐垚*tmp
            {
                
if(now->child[*tmp-'0'== NULL)
                    now
->child[*tmp-'0'= new dictree;
                now 
= now->child[*tmp-'0'];
                
//now->num++;//涓嶈兘鍐嶅姞
                tmp++;
            }

            now
->num++;            
            
if( maxs < now->num)
                maxs 
= now->num;
        }

        cout
<<maxs<<endl;
    }

    
return 0;
}


DreamSky 2009-04-09 14:15 鍙戣〃璇勮
]]>
四虎久久影院| 免费无码国产欧美久久18| 久久Av无码精品人妻系列| 国产精品9999久久久久| 99久久综合狠狠综合久久| 久久精品免费网站网| 久久国产色av免费看| 国产精品永久久久久久久久久| 久久一本综合| 国产精品久久久久无码av| 久久婷婷人人澡人人| 国产精品久久久久久久久鸭| 久久久久亚洲AV成人网人人软件| 欧美日韩精品久久久免费观看| 91精品国产高清久久久久久io | 免费久久人人爽人人爽av| 国产产无码乱码精品久久鸭| 久久免费99精品国产自在现线 | 久久国产午夜精品一区二区三区| 国产毛片欧美毛片久久久| 国产农村妇女毛片精品久久| 亚洲国产另类久久久精品小说| 99久久精品免费| 久久狠狠色狠狠色综合| 亚洲国产精品一区二区久久hs| 亚洲国产香蕉人人爽成AV片久久 | 久久99国产精品久久久| 99久久夜色精品国产网站| 久久精品国产99久久丝袜| 一本色道久久88加勒比—综合| 国产亚洲精品美女久久久| 中文字幕无码精品亚洲资源网久久 | 久久久久人妻一区精品| 亚洲国产二区三区久久| 国产精品久久久久aaaa| www.久久99| 精品久久香蕉国产线看观看亚洲| 午夜精品久久久久久99热| 一本一本久久a久久综合精品蜜桃| 久久久久久伊人高潮影院| 久久综合久久美利坚合众国|