• <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 閱讀(309) 評論(0)  編輯 收藏 引用 所屬分類: 字符串 、POJ
            99久久精品免费观看国产| 老司机国内精品久久久久| 97超级碰碰碰久久久久| 精品人妻伦九区久久AAA片69| 91久久精品电影| 久久免费高清视频| 国产精久久一区二区三区| 精品久久久久久中文字幕| 国产精品久久一区二区三区| 久久人人爽人人爽人人片av高请| 久久人人妻人人爽人人爽| 久久亚洲AV成人无码国产| 浪潮AV色综合久久天堂| 69SEX久久精品国产麻豆| 国产精品久久久久天天影视| 91精品国产91久久久久久| 国产A级毛片久久久精品毛片| 久久国产成人| 99久久做夜夜爱天天做精品| 无码精品久久久久久人妻中字| 久久无码人妻一区二区三区| 91精品国产综合久久婷婷| 99久久精品免费看国产| 国产成人综合久久精品红| 国内精品久久久人妻中文字幕| 国产999精品久久久久久| 看全色黄大色大片免费久久久 | 久久精品中文字幕久久| Xx性欧美肥妇精品久久久久久 | 国产成人精品久久一区二区三区av| 国产精品欧美久久久久天天影视 | 人妻无码精品久久亚瑟影视| 国产精品无码久久久久久| 久久九九久精品国产| 久久国产精品无码一区二区三区| 91久久成人免费| 久久香综合精品久久伊人| 久久天天婷婷五月俺也去| 国产高潮久久免费观看| 无码精品久久久久久人妻中字| 精品乱码久久久久久夜夜嗨|