• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            #include <stdio.h>
            #include 
            <stdlib.h>
            #include 
            <string.h>
            #include 
            <math.h>

            #define N 10010
            char   dict[N][20];
            int    result[N];
            int    len;

            int  check( char a[20], char b[20] )
            {
                
            int l1= strlen(a), l2= strlen(b);
                
            int num= 0;
                
                
            if( l1== l2 )
                
            {
                    
            forint i= 0; i< l1; ++i )
                    
            if( a[i]!= b[i] && ++num>= 2 ) return -1;
                    
                    
            if( num== 0 )  return 2;
                }

                
            else if( l1< l2 )
                
            {
                    
            forint i= 0, j= 0; i< l1 && j< l2; ++i, ++j )
                    
            if( a[i]!= b[j] )
                    
            {
                        
            if++num>= 2 ) return -1;
                        i
            --;
                    }

                }

                
            else
                
            {
                    
            forint i= 0, j= 0; i< l1 && j< l2; ++i, ++j )
                        
            if( a[i]!= b[j] )
                        
            {
                            
            if++num>= 2 ) return -1;
                            j
            --;
                        }

                }


                
            return 1;
            }


            int main()
            {
                
            char  str[20];
                
                
            while( scanf("%s", str), strcmp( str, "#" )!= 0 )  strcpy( dict[len++], str );
                
            while( scanf("%s", str), strcmp( str, "#" )!= 0 )
                
            {
                    
            int size= strlen( str );
                    
            int tt= 0;
                    
            bool equal= false;
                    
                    
            forint i= 0; i< len; ++i )
                    
            {
                        
            int ll= strlen( dict[i] );
                        
                        
            if( abs( ll- size )< 2  )  
                        
            {
                            
            int  value= check( dict[i], str );
                            
                            
            if( value== 1 )   result[tt++]= i;
                            
            else if( value== 2 )
                            
            {
                                printf(
            "%s is correct\n", str);
                                equal
            = true;
                                
                                
            break;
                            }

                        }

                    }

                    
                    
            if!equal )
                    
            {
                        printf(
            "%s:", str );
                        
            forint i= 0; i< tt; ++i )
                        printf(
            " %s", dict[ result[i] ]);
                        
                        printf(
            "\n");
                    }
                
                }

                
                
            return 0;
            }

                
            posted on 2008-10-30 17:36 Darren 閱讀(240) 評論(0)  編輯 收藏 引用
            国产精品日韩深夜福利久久| 久久av免费天堂小草播放| 久久久久亚洲AV无码专区桃色 | 日韩欧美亚洲国产精品字幕久久久| 狠狠色丁香婷婷综合久久来| 人人狠狠综合久久亚洲88| 午夜精品久久久久成人| 久久久亚洲欧洲日产国码二区 | 午夜视频久久久久一区| 久久夜色精品国产欧美乱| 久久国产精品偷99| 99久久夜色精品国产网站| 久久久久久亚洲精品不卡| 99久久99这里只有免费费精品| 国内精品伊人久久久久影院对白| 亚洲国产精品久久久天堂| 久久天天躁狠狠躁夜夜不卡| 性做久久久久久久| 久久亚洲天堂| 久久97久久97精品免视看秋霞 | 色综合色天天久久婷婷基地| 人妻无码精品久久亚瑟影视| 99久久精品久久久久久清纯| 久久婷婷成人综合色综合| 久久97久久97精品免视看| 99久久精品免费国产大片| 亚洲成色999久久网站| 国产三级久久久精品麻豆三级| 一本色道久久综合亚洲精品| 手机看片久久高清国产日韩| 久久国产视屏| 亚洲欧美一级久久精品| 四虎国产精品免费久久| 日韩亚洲国产综合久久久| 亚洲欧美久久久久9999| 精品久久久一二三区| 伊人久久一区二区三区无码| 欧美亚洲国产精品久久高清| 久久久久久亚洲精品影院| 久久久久精品国产亚洲AV无码| 99久久免费国产精品特黄|