首页 > 其他 > 详细

HDU 1219: AC Me

时间:2017-07-28 00:52:30      阅读:294      评论:0      收藏:0      [点我收藏+]

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

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!