• <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 閱讀(245) 評論(0)  編輯 收藏 引用
            超级97碰碰碰碰久久久久最新 | 久久91精品国产91| 99久久免费国产精品特黄| 亚洲国产精品无码成人片久久| 久久亚洲精精品中文字幕| 激情五月综合综合久久69| 国产成人精品综合久久久久| 免费观看久久精彩视频| 成人午夜精品无码区久久| 日韩精品国产自在久久现线拍| 一本一本久久a久久精品综合麻豆| 97久久精品国产精品青草| 亚洲伊人久久成综合人影院| 99久久精品国产免看国产一区| 热99RE久久精品这里都是精品免费 | 久久夜色精品国产亚洲| 久久久久久精品免费看SSS| 精品久久久久久无码中文字幕 | 色偷偷88888欧美精品久久久| 久久天天躁狠狠躁夜夜2020| 久久精品成人免费网站| 欧美一区二区三区久久综合| 久久久久亚洲精品男人的天堂 | 久久亚洲私人国产精品vA| 一个色综合久久| 亚洲色欲久久久久综合网| 久久成人18免费网站| 91性高湖久久久久| 婷婷久久综合九色综合98| 亚洲国产精品久久| 久久精品国产91久久麻豆自制| 久久久老熟女一区二区三区| 午夜精品久久久久久99热| 97精品国产97久久久久久免费| 久久人人爽人人爽人人爽| 狠狠色丁香久久婷婷综合_中| 九九热久久免费视频| 久久强奷乱码老熟女| 综合久久久久久中文字幕亚洲国产国产综合一区首| 99久久精品国产一区二区三区| 久久精品国产一区二区电影|