锘??xml version="1.0" encoding="utf-8" standalone="yes"?>国产欧美一区二区视频,欧美国产日韩一区,亚洲深夜avhttp://m.shnenglu.com/Dreams/archive/2009/04/10/79515.htmlDreamSkyDreamSkyFri, 10 Apr 2009 08:03:00 GMThttp://m.shnenglu.com/Dreams/archive/2009/04/10/79515.htmlhttp://m.shnenglu.com/Dreams/comments/79515.htmlhttp://m.shnenglu.com/Dreams/archive/2009/04/10/79515.html#Feedback1http://m.shnenglu.com/Dreams/comments/commentRss/79515.htmlhttp://m.shnenglu.com/Dreams/services/trackbacks/79515.html闃呰鍏ㄦ枃

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

DreamSky 2009-04-09 17:43 鍙戣〃璇勮
]]>
hdu 1251 緇熻闅鵑http://m.shnenglu.com/Dreams/archive/2009/04/09/79341.htmlDreamSkyDreamSkyThu, 09 Apr 2009 06:17:00 GMThttp://m.shnenglu.com/Dreams/archive/2009/04/09/79341.htmlhttp://m.shnenglu.com/Dreams/comments/79341.htmlhttp://m.shnenglu.com/Dreams/archive/2009/04/09/79341.html#Feedback0http://m.shnenglu.com/Dreams/comments/commentRss/79341.htmlhttp://m.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])//杈撳叆鏂規(guī)硶寰坣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://m.shnenglu.com/Dreams/archive/2009/04/09/79340.htmlDreamSkyDreamSkyThu, 09 Apr 2009 06:15:00 GMThttp://m.shnenglu.com/Dreams/archive/2009/04/09/79340.htmlhttp://m.shnenglu.com/Dreams/comments/79340.htmlhttp://m.shnenglu.com/Dreams/archive/2009/04/09/79340.html#Feedback0http://m.shnenglu.com/Dreams/comments/commentRss/79340.htmlhttp://m.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 鍙戣〃璇勮
]]>
久久这里只有精品视频99| 精品久久久久久久无码 | 久久精品国产免费| 国产亚州精品女人久久久久久| 亚洲中文字幕伊人久久无码 | 9191精品国产免费久久| 2021国产精品久久精品| 精品乱码久久久久久久| 亚洲综合久久久| 国产成人99久久亚洲综合精品| 色诱久久久久综合网ywww | 欧洲人妻丰满av无码久久不卡| 狠狠色丁香婷婷综合久久来来去 | 久久精品国产精品亜洲毛片| 久久精品国产亚洲av麻豆色欲| 欧美国产精品久久高清| 久久精品这里热有精品| 男女久久久国产一区二区三区| 综合久久一区二区三区| 久久精品无码一区二区app| 国产精品久久亚洲不卡动漫| 中文字幕久久久久人妻| 久久青青色综合| 亚洲欧美一级久久精品| 日本精品一区二区久久久| 国产精品一区二区久久精品无码| 久久精品中文騷妇女内射| 日本久久久久亚洲中字幕| 久久久久亚洲精品日久生情 | 久久综合色区| 日本亚洲色大成网站WWW久久| 国产高潮久久免费观看| 国产精品激情综合久久| 国产精品免费久久| 久久99精品久久久久久齐齐| 国产国产成人久久精品| 久久久久久久久久免免费精品| 美女久久久久久| 伊人久久久AV老熟妇色| 国产精品久久久久天天影视 | 午夜精品久久久久久久久|