• <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)  編輯 收藏 引用
            亚洲国产一成久久精品国产成人综合 | 久久av无码专区亚洲av桃花岛| 久久久久久综合一区中文字幕 | 亚洲国产小视频精品久久久三级| 中文成人无码精品久久久不卡| 亚洲精品国产综合久久一线| 国产高清国内精品福利99久久| 久久亚洲AV无码西西人体| 无码国内精品久久综合88 | 人妻无码久久一区二区三区免费 | 99久久这里只精品国产免费| 一极黄色视频久久网站| 欧洲成人午夜精品无码区久久| 91亚洲国产成人久久精品| 亚洲精品综合久久| 青青青青久久精品国产| 欧美激情一区二区久久久| 精品综合久久久久久97超人| 国产女人aaa级久久久级| 天天爽天天狠久久久综合麻豆| 精品久久人人爽天天玩人人妻| 久久亚洲精品国产精品| 久久影院久久香蕉国产线看观看| 少妇精品久久久一区二区三区| 久久久久99精品成人片| 久久久噜噜噜久久熟女AA片| 国产亚洲欧美成人久久片| 久久精品免费全国观看国产| 久久99国产精品二区不卡| 精品熟女少妇AV免费久久| 久久99精品久久久久久野外| 久久精品成人欧美大片| 久久男人AV资源网站| 国产L精品国产亚洲区久久| 亚洲国产精品18久久久久久| 一本大道加勒比久久综合| 国产精品久久国产精品99盘| 伊人久久无码精品中文字幕| 成人综合伊人五月婷久久| 亚洲va久久久噜噜噜久久| 国产成人精品综合久久久久|