Source Code
#define _CRT_SECURE_NO_WARNINGS
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define ull unsigned long long
#define sz(s)    (int)(s.size())
#define endl "\n"
#define PI acos(-1)
#define all(a) a.begin(), a.end()

void Open() {
#ifndef ONLINE_JUDGE
    freopen("input.txt", "r", stdin);
    //freopen("out.txt", "w", stdout);
#endif  !ONLINEJUDGE
    ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);
}
int dx[]{ 1, -1, 0, 0, 1, 1, -1, -1 };
int dy[]{ 0, 0, 1, -1, 1, -1, 1, -1 };
const int OO = 0x3f3f3f3f;

int main()
{
   // Open();

    string s = "Atypical";

    for (auto& e : s)if (e < 'a')e += 32;

    map < char, int > mp;
    for (auto e : s)mp[e]++;

    string str;
    cin >> str;
    for (auto& e : str)if (e < 'a')e += 32;

    map < char, int > mp1;
    for (auto e : str)mp1[e]++;

    bool ok = 1;

    for (auto e : mp) {
        ok &= (e.second <= mp1[e.first]);
    }
    if (ok)cout << "Yes" << endl;
    else cout << "No" << endl;

}
Copy
We Love Atypical hossam
GNU G++17
1 ms
764 KB
Accepted