• <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)  編輯 收藏 引用
            性色欲网站人妻丰满中文久久不卡| 日本强好片久久久久久AAA| 97精品伊人久久久大香线蕉| 人人狠狠综合久久亚洲婷婷| 狠狠色丁香婷婷综合久久来来去| 亚洲国产综合久久天堂| 久久综合国产乱子伦精品免费| 99久久国产综合精品成人影院| 亚洲AⅤ优女AV综合久久久| 久久精品国产亚洲AV无码娇色| 国产视频久久| 久久久无码精品亚洲日韩蜜臀浪潮 | 岛国搬运www久久| 亚洲?V乱码久久精品蜜桃| 久久久国产乱子伦精品作者| 久久综合狠狠色综合伊人| 久久亚洲AV无码精品色午夜| 久久Av无码精品人妻系列| 亚洲人成无码www久久久| 大伊人青草狠狠久久| 欧美久久久久久| 精品久久久久中文字| 精品熟女少妇av免费久久| 久久精品国产免费观看三人同眠| 久久99国产精品久久99| 欧美黑人又粗又大久久久| 中文国产成人精品久久亚洲精品AⅤ无码精品 | 久久不见久久见免费视频7| 精品久久久久久久国产潘金莲 | 色99久久久久高潮综合影院| 99久久国产综合精品麻豆| 亚洲va久久久噜噜噜久久男同| 亚洲国产精品成人久久蜜臀| 激情久久久久久久久久| 国产精品日韩欧美久久综合| 久久久久综合网久久| 国产精品久久久久天天影视 | 久久激情亚洲精品无码?V| 99久久精品国产一区二区三区| 粉嫩小泬无遮挡久久久久久| 久久综合狠狠综合久久|