码迷,mamicode.com
首页 > 其他好文 > 详细

HDU 1219: AC Me

时间:2017-07-28 00:59:47      阅读:168      评论:0      收藏:0      [点我收藏+]

标签:using   begin   pac   class   ret   algorithm   auth   namespace   ace   

HDU 1219: AC Me

///@author Sycamore, ZJNU
///@accepted_on 2017-01-24
#include<iostream>
#include<string>
#include <algorithm>
using namespace std;
int main()
{
    string s;
    while (getline(cin, s))
    {
        for (int i = 0; i < 26; i++)
        {
            cout << char(a + i) << : << count(s.begin(), s.end(), a + i) << endl;
        }
        cout << endl;
    }
    return 0;
}

 

HDU 1219: AC Me

标签:using   begin   pac   class   ret   algorithm   auth   namespace   ace   

原文地址:http://www.cnblogs.com/zjnu/p/7248055.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!