bai 2 - hsg9 vinhphuc 2021

20/04/2023

http://chuyentin.pro/

Code
#include <bits/stdc++.h>
using namespace std;


int main(){
	string s;
	cin >> s;
	map<char, int> mp;
	for (int i=0;i < s.length(); i++) mp[s[i]]++;
	for (auto i : mp) {
		cout << i.first << ' ' << i.second << endl;
	}
	return 0;
}