1. 程式人生 > >HDU 1219: AC Me

HDU 1219: AC Me

ret lin accepted accept pan for iostream cin acm

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