Source Code
//
//  main.cpp
//  to be better
//
//  Created by Malek Al-Sadi
//
#include <iostream>
#include <vector>
#include <map>
using namespace std;
int main() {
    string s="atypical";
    string str;cin>>str;
    map<char,int>mp;
    for(int i(0);i<str.size();i++){
        str[i]=tolower(str[i]);
        mp[str[i]]++;
    }
    for(int i(0);i<s.size();i++){
        if(!mp[s[i]]){
            cout<<"No"<<endl;
            return 0;
        }
    }
    if(mp['a']<2){
        cout<<"No"<<endl;
        return 0;
    }
    cout<<"Yes"<<endl;
    return 0;
}
Copy
We Love Atypical Malek
GNU G++17
0 ms
796 KB
Accepted