UVA 11577 - Letter Frequency

UVA Sep 01, 2020

Problem PDF

Solution:

/*-----------------------------------------------*/
//Problem Setter: Sumudu Fernando
//Problem Name  : Letter Frequency
//Uva Problem No: 11577
//Type          : Ad hoc.
//Author        : Shipu Ahamed
//University    : BUBT
//E-mail        : [email protected]
/*-----------------------------------------------*/

#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#define ll long long
#define sc scanf
#define pf printf
#define pi 2*acos(0.0)
using namespace std;
int main()
{
    string s,p;
    int t;
    cin>>t;
    getchar();
    while(t--)
    {
        getline(cin,s);

         int l=s.size();
         mapmp;
         mapmp1;
         priority_queuepq;

         for(int i=0;i='A'&&s[i]<='Z')
             {
                 s[i]=s[i]+32;
             }
             mp[s[i]]++;
         }
         for(int i=0;i
https://github.com/Shipu/OnlineJudgeProblemSolutionWithCPlusPlus/tree/master/uva/11577/11577.cpp

Tags

Shipu Ahamed

CSPO® | Partly Product, Project Manager and Partly Software Engineer.

Great! You've successfully subscribed.
Great! Next, complete checkout for full access.
Welcome back! You've successfully signed in.
Success! Your account is fully activated, you now have access to all content.