Source Code
#include <bits/stdc++.h>
using namespace std;
int main ()
{
    string s;
    cin >> s;
    string s1 = "atypical";
    map<char,int>ma;
    for (int i = 0 ; i < s1.size() ; i++)
        ma[s1[i]]++;
    for(int i = 0 ; i < s.size() ; i++)
        s[i] = tolower(s[i]) , ma[s[i]]--;
    int cou = 0;
    for (int i = 0 ; i < s1.size() ; i++)
        if (ma[s1[i]] > 0) cou++;
    if (cou == 0)
        cout <<"YES\n";
    else
        cout << "NO\n";




return 0;
}
Copy
We Love Atypical MD0
GNU G++14
0 ms
788 KB
Accepted