• <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>
            posts - 195,  comments - 30,  trackbacks - 0
            #include<iostream>
            #include
            <string>
            #include
            <map>
            using namespace std;

            int main()
            {
                
            //freopen("s.txt","r",stdin);
              
            //freopen("key.txt","w",stdout); 
                string s;
                
            int g=0;
                
            while(getline(cin,s))
                {
                    
            if (g) cout<<endl;
                    g
            =1;
                    
            int sum=0;
                    map
            <string,int> a;
                    
            while(s!="")
                    {
                        a[s]
            ++;
                        sum
            ++;
                        getline(cin,s);
                    }
                    cout.flags(ios::
            fixed);
                    cout.precision(
            4);
                    
            for (map<string,int>::iterator p=a.begin();p!=a.end();p++)
                        cout
            <<p->first<<" "<<100.0*p->second/sum<<endl;
                }
                
            return 0;
            }

            #include<iostream>
            #include<string>
            #include<map>
            using namespace std;

            int main()
            {
             freopen("s.txt","r",stdin);
              freopen("key.txt","w",stdout);
                string s;
                int g=0;
                while(getline(cin,s))
                {
                    if (g) cout<<endl;
                    g=1;
                    int sum=0;
                    map<string,int> a;
                    while(s!="")
                    {
                        a[s]++;
                        sum++;
                        getline(cin,s);
                    }
                    cout.flags(ios::fixed);
                    cout.precision(4);
                    for (map<string,int>::iterator p=a.begin();p!=a.end();p++)
                        cout<<p->first<<" "<<100.0*p->second/sum<<endl;
                }
                return 0;
            }

             

            posted on 2009-06-27 09:05 luis 閱讀(391) 評論(0)  編輯 收藏 引用 所屬分類: 給我啟發題
            <2009年7月>
            2829301234
            567891011
            12131415161718
            19202122232425
            2627282930311
            2345678

            常用鏈接

            留言簿(3)

            隨筆分類

            隨筆檔案

            文章分類

            文章檔案

            友情鏈接

            搜索

            •  

            最新評論

            閱讀排行榜

            評論排行榜

            久久人人爽人人爽人人片av麻烦 | 国产午夜精品久久久久免费视| 久久笫一福利免费导航| 无码国内精品久久综合88| 久久精品水蜜桃av综合天堂 | 亚洲国产精品无码久久青草| 亚洲精品乱码久久久久久久久久久久| 亚洲国产精品成人久久| 99精品伊人久久久大香线蕉| 久久人人爽人人爽人人片AV东京热| 欧美一区二区三区久久综合| 欧美伊香蕉久久综合类网站| 久久久久久精品无码人妻| 国产精品久久久久影院色| 久久精品国产亚洲AV香蕉| 伊人丁香狠狠色综合久久| 久久棈精品久久久久久噜噜| 久久免费大片| A级毛片无码久久精品免费| 亚洲狠狠婷婷综合久久久久| 久久伊人五月天论坛| 成人免费网站久久久| 国色天香久久久久久久小说| 青春久久| 久久亚洲精品国产亚洲老地址| 91精品免费久久久久久久久| 久久国产精品99国产精| 久久人人爽人人爽人人爽| 四虎影视久久久免费| 国产精品va久久久久久久| 国产精品久久免费| 97久久香蕉国产线看观看| 麻豆一区二区99久久久久| 99久久精品国产一区二区| 亚洲精品国产自在久久| 日本亚洲色大成网站WWW久久| 国产精品免费久久| 午夜不卡888久久| 久久AAAA片一区二区| 久久久久国产一区二区| 色婷婷久久久SWAG精品|