• <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 閱讀(306) 評(píng)論(0)  編輯 收藏 引用 所屬分類: 字符串POJ
            欧美日韩精品久久免费| 精品久久777| 麻豆亚洲AV永久无码精品久久| 国产Av激情久久无码天堂| 久久这里只有精品首页| 思思久久好好热精品国产| 久久精品九九亚洲精品| 女同久久| 久久国产乱子精品免费女| 久久久99精品成人片中文字幕| 久久国产AVJUST麻豆| 国产精品欧美久久久天天影视| 人妻精品久久久久中文字幕| www久久久天天com| 国产美女亚洲精品久久久综合| 99久久99久久精品国产| 久久精品一本到99热免费| 久久久久久久综合狠狠综合| 国产成人无码精品久久久久免费| 亚洲色大成网站WWW久久九九| 久久精品国产精品亚洲下载| av午夜福利一片免费看久久| 国色天香久久久久久久小说| 亚洲精品乱码久久久久久蜜桃| 91精品无码久久久久久五月天| AV无码久久久久不卡网站下载| 麻豆精品久久久久久久99蜜桃| 热久久国产欧美一区二区精品| 国产成人无码精品久久久免费| 精品久久一区二区| 99久久人妻无码精品系列蜜桃| 久久天天躁狠狠躁夜夜不卡| 久久受www免费人成_看片中文| 久久人人爽人爽人人爽av| 久久午夜综合久久| 久久久综合香蕉尹人综合网| 久久伊人亚洲AV无码网站| 久久无码人妻精品一区二区三区| 久久最新免费视频| 久久亚洲色一区二区三区| 久久久久国产一级毛片高清板|