Source Code
#include <iostream>
#include<bits/stdc++.h>
#include <cmath>
#include <string>
#include <algorithm>
#define sareeeee3 ios_base::sync_with_stdio(false);cout.tie(NULL);cin.tie(NULL);
using namespace std;
using veci=vector<int>;
using vecl=vector<long long>;
#define ll long long
/*
ll kwys(ll k){

}
*/




void result()
{
    string s="atypical";
    string a;
    cin>>a;
    map<char,int>m;
    for (int i = 0; i <a.size() ; ++i) {
        if(a[i]>=65&&a[i]<=90){
            a[i]=a[i]-'A'+'a';
        }
    }
    for (int i = 0; i <a.size(); ++i) {
        if(a[i]=='a'||a[i]=='t'||a[i]=='y'||a[i]=='p'||a[i]=='i'||a[i]=='c'||a[i]=='l'){
            m[a[i]]++;
        }

    }
    if(m['a']>=2&&m['t']>=1&&m['y']>=1&&m['p']>=1&&m['i']>=1&&m['c']>=1&&m['l']>=1){
        cout<<"yes";
    }else{cout<<"no";}






}

int main ()
{
    sareeeee3
    int t=1;
   // cin>>t;
#ifndef ONLINE_JUDGE
   // freopen("tests.txt", "r", stdin);
    //freopen("output.txt", "w", stdout);
#endif

    while (t--)
    {
        result();
        cout<<"\n";
    }

}
Copy
We Love Atypical Mostafa_Fouad
GNU G++17
16 ms
256 KB
Accepted