锘??xml version="1.0" encoding="utf-8" standalone="yes"?>久久久久国产,人妻精品久久久久中文字幕一冢本 ,模特私拍国产精品久久http://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精品久久久久久久婷婷| 99久久精品国产免看国产一区| 成人免费网站久久久| 久久成人精品| 久久九九精品99国产精品| 国产激情久久久久影院| 欧美激情一区二区久久久| 久久精品国产亚洲网站| 久久久国产99久久国产一| 久久国产精品成人免费| 久久伊人色| 久久国产一区二区| 婷婷久久久亚洲欧洲日产国码AV | 久久亚洲AV无码精品色午夜| 久久久婷婷五月亚洲97号色| 久久影视综合亚洲| 亚洲国产成人久久精品动漫| 亚洲AV无码久久| yy6080久久| 亚洲精品无码久久毛片| yellow中文字幕久久网| 国产精品9999久久久久| 久久影院综合精品| 伊人久久大香线蕉亚洲五月天| 久久强奷乱码老熟女网站| 久久精品国产久精国产| 国产一区二区精品久久| 色婷婷综合久久久中文字幕| 亚洲愉拍99热成人精品热久久| 久久午夜夜伦鲁鲁片免费无码影视| 精品国产婷婷久久久| 国产国产成人久久精品| 国内精品久久久久久久亚洲 | 久久久久中文字幕| 国产成人久久激情91| 久久精品国产亚洲AV麻豆网站| 久久久噜噜噜www成人网| 久久久久99精品成人片试看| 久久99国产精品久久| 99久久人人爽亚洲精品美女|