• <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
            久久久久久久97| 日本一区精品久久久久影院| 久久青青草原亚洲av无码| 久久久久国产精品嫩草影院| 潮喷大喷水系列无码久久精品| 国内精品久久人妻互换| 久久综合九色综合欧美狠狠| 久久久久国产一级毛片高清板| 久久精品久久久久观看99水蜜桃| 午夜不卡888久久| 久久久午夜精品福利内容| 99久久国产热无码精品免费 | 久久www免费人成看片| 国产精品久久久久久| 香蕉久久夜色精品国产尤物| 久久精品99久久香蕉国产色戒 | 香港aa三级久久三级| 久久人妻少妇嫩草AV无码专区| 人妻中文久久久久| 日本一区精品久久久久影院| 麻豆亚洲AV永久无码精品久久| 四虎国产精品免费久久| 91精品国产综合久久香蕉 | 2021少妇久久久久久久久久| 亚洲精品乱码久久久久久蜜桃 | 人人狠狠综合久久88成人| 久久综合鬼色88久久精品综合自在自线噜噜 | 国产国产成人久久精品| 国产精品国色综合久久| 热re99久久精品国99热| 午夜久久久久久禁播电影| 精品综合久久久久久97| 久久人人爽人人爽人人片AV麻烦 | 久久精品综合一区二区三区| 伊人久久精品线影院| 国产精品成人久久久久久久| 亚洲一本综合久久| 品成人欧美大片久久国产欧美| 久久久久久国产精品美女| 久久亚洲国产成人影院网站| 色狠狠久久综合网|