标签:using begin pac class ret algorithm auth namespace ace
///@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; }
标签:using begin pac class ret algorithm auth namespace ace
原文地址:http://www.cnblogs.com/zjnu/p/7248055.html