Facebook
From asda, 8 Months ago, written in C++.
This paste is a reply to Untitled from adsad - go back
Embed
Viewing differences between Untitled and Re: Untitled
#include
using namespace std;
int main()
{
   int t;
   cin>>t;
   cin.ignore();
   for(int i=0;i     string s;
s;

    getline(cin,s);
    transform(s.begin(),s.end(),s.begin(),::toupper);
    mapmp;
    for(int i=0;i             if(s[i]!=' ')
            mp[s[i]]++;
    }
    for(auto it:mp){
        cout<<(it).first<<" "<<(it).second<     }

   }
}