• <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 <iostream>
            #include 
            <string>
            #include 
            <algorithm>
            #include 
            <cstdio>

            const int maxn = 20000;
            const int MAXN = 100000+10;

            using std :: string;
            using std :: cout;
            using std :: endl;

            int main()
            {
                
            string ans[MAXN];
                
            char tel[maxn];
                
            char store[maxn];
                
            int n;
                
            bool ok;
               
            while(~ scanf("%d",&n))
                
            {
                    ok 
            = false;
                    
            int count = 0;
                    
            while(n--)
                    
            {
                        scanf(
            "%s",tel);
                        
            int j;
                        
            for(int i = 0,j = 0; tel[i] != '\0'; i++)
                        
            {
                            
            if(tel[i]-'0'>=0&&tel[i]-'0'<=9)
                                  store[j
            ++= tel[i];
                            
            else if(tel[i] != '-' && j != 3 )
                            
            {
                                
            //ans[count]+='2';
                                if(tel[i]=='A'||tel[i]=='B'||tel[i]=='C')
                                        store[j
            ++= '2';
                                
            else if(tel[i]=='D'||tel[i]=='E'||tel[i]=='F')
                                        store[j
            ++= '3';
                                
            else if(tel[i]=='G'||tel[i]=='H'||tel[i]=='I')
                                        store[j
            ++= '4';
                                
            else if(tel[i]=='J'||tel[i]=='K'||tel[i]=='L')
                                        store[j
            ++= '5';
                                
            else if(tel[i]=='M'||tel[i]=='N'||tel[i]=='O')
                                        store[j
            ++= '6';
                                
            else if(tel[i]=='P'||tel[i]=='R'||tel[i]=='S')
                                        store[j
            ++= '7';
                                
            else if(tel[i]=='T'||tel[i]=='U'||tel[i]=='V')
                                        store[j
            ++= '8';
                                
            else if(tel[i]=='W'||tel[i]=='X'||tel[i]=='Y')
                                        store[j
            ++= '9';
                            }

                            
            if( j==3 )  store[j++]='-';
                        }

                        ans[count
            ++= store;
                    }

                    std :: sort(ans,ans
            +count);
                    
            int ans_count;
                    
            for(int i = 0; i < count; i++)
                    
            {
                         ans_count 
            = 1;
                         
            for(int j = i + 1; j < count; j++)
                         
            {
                             
            if(ans[j]==ans[i]) ans_count++;
                             
            else break;
                         }

                         
            if(ans_count > 1)
                         
            {
                             ok 
            = true;
                             cout 
            << ans[i] << " " << ans_count << endl;
                             i
            +=(ans_count-1);
                         }

                    }

                    
            if(!ok)  cout << "No duplicates." << endl;

                    
            //for(int i = 0; i <count; i++)
                    
            //std :: cout << ans[i] << std :: endl;
                }

                
            return 0;
            }

            posted on 2010-10-02 19:21 Vontroy 閱讀(310) 評論(0)  編輯 收藏 引用 所屬分類: 字符串POJ
            精品久久久久久亚洲| 久久妇女高潮几次MBA| 91精品国产91久久久久久蜜臀| 国产精品欧美久久久天天影视| 久久免费视频观看| 亚洲精品高清一二区久久| 亚洲国产精品无码久久98| 88久久精品无码一区二区毛片 | 色综合久久无码中文字幕| 久久99精品久久只有精品| 精品国产91久久久久久久a| 精品人妻伦九区久久AAA片69| 亚洲综合久久综合激情久久| 久久人妻少妇嫩草AV蜜桃| 久久精品国产亚洲精品| 久久久久久国产精品免费无码 | 精品熟女少妇AV免费久久| 久久久WWW成人免费毛片| 久久青草国产手机看片福利盒子| 久久久久久精品免费看SSS | 久久久www免费人成精品| 精品久久久久久无码中文野结衣| 色偷偷88888欧美精品久久久| 久久中文精品无码中文字幕| 99久久精品无码一区二区毛片| 久久亚洲精品国产精品| 亚洲精品乱码久久久久久蜜桃不卡| 久久人人爽人人爽人人片AV麻豆 | 久久久久久久综合日本| 99久久国产综合精品五月天喷水 | 99久久精品无码一区二区毛片| 国内精品久久久久| 国产精品久久自在自线观看| 97r久久精品国产99国产精| 97久久久久人妻精品专区| 成人久久综合网| 亚洲国产精品一区二区久久| 国产精品激情综合久久| 久久精品综合一区二区三区| 亚洲国产成人久久综合碰| 亚洲综合熟女久久久30p|