• <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 閱讀(241) 評論(0)  編輯 收藏 引用
            久久男人中文字幕资源站| 久久久SS麻豆欧美国产日韩| 国产精品嫩草影院久久| 一本大道久久东京热无码AV| 国产三级久久久精品麻豆三级 | 国产精品久久久亚洲| av无码久久久久久不卡网站| 久久精品无码一区二区三区免费| 日本久久久久亚洲中字幕| 久久久久国产精品嫩草影院| 久久九九精品99国产精品| 久久中文字幕无码专区| 久久久青草青青亚洲国产免观| 亚洲国产精品无码久久一线| 久久这里只有精品视频99| 亚洲狠狠综合久久| 99久久综合狠狠综合久久止| 日韩AV无码久久一区二区| 久久精品视频一| 日本精品久久久久久久久免费| 青青草原综合久久大伊人精品| 精品久久久噜噜噜久久久| 亚洲中文字幕无码久久2020| 伊人色综合久久天天网| 久久久久久久免费视频| 亚洲精品国产综合久久一线| 午夜精品久久久内射近拍高清| 久久久久国产亚洲AV麻豆| 99久久www免费人成精品| 97久久精品人人做人人爽| 91久久精品视频| 久久精品国产第一区二区| 日本国产精品久久| 久久久久久久精品妇女99| 青草国产精品久久久久久| 久久天堂AV综合合色蜜桃网 | 亚洲欧美国产日韩综合久久| 日韩va亚洲va欧美va久久| 精品综合久久久久久98| 久久天天躁狠狠躁夜夜躁2O2O| 久久91亚洲人成电影网站|