Source Code
#include <bits/stdc++.h>

using namespace std;


#define  all(a)   a.begin(), a.end()
#define  endl  '\n'
#define  ll long long
#define  set(a) fixed << setprecision(a)


int arr[1000];
int main()
{
    ios_base::sync_with_stdio(0);
    cin.tie(0); cout.tie(0);
    string s;
    cin >> s;
    for(int i = 0; i < s.size(); i++)
    {
        arr[s[i]]++;
    }
    if( (arr['a']>=2||arr['A']>=2)&& (arr['t']>=1||arr['T']>=1)&& (arr['y']>=1||arr['Y']>=1)&&(arr['p']>=1||arr['P']>=1)&&(arr['i']>=1||arr['I']>=1)&& (arr['c']>=1||arr['C']>=1 )&&(arr['l']>=1||arr['L']>=1))
        cout << "Yes";
    else
        cout<<"No";




    return 0;
}

Copy
We Love Atypical tahahussein143
GNU G++17
0 ms
768 KB
Accepted