Source Code
#include <stdio.h>
#include <fstream>
#include <iostream>
#include <string>
#include <cmath>
#include <algorithm>
#include <vector>
#include <math.h>
#include <iomanip>
#include <map>
#include <queue>
#include <stack>
#include <list>


using namespace std;



int main()
{
    string s,a="atypical";
    cin>>s;
    map<char,int> m;
    for(int i=0; i<s.length(); i++)
    {
        if(isupper(s[i]))
            s[i]= tolower(s[i]);
        m[s[i]]++;
    }
    for(int i=0; i<a.length(); i++)
    {
        if(m[a[i]]==0)
        {
            cout<<"No"<<endl;
            return 0;
        }
        if(m[a[0]]<2)
        {
            cout<<"No"<<endl;
            return 0;
        }
    }
    cout<<"Yes"<<endl;

}
Copy
We Love Atypical Abbro
GNU G++17
1 ms
864 KB
Accepted