Source Code
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
vector<ll>v;
ll arr[10];
#define AiBak_is_Here main
int AiBak_is_Here()
{
   string s;
   cin>>s;

   for(int i=0;i<s.size();i++)
   {
        if(s[i]=='a' || s[i]=='A'){arr[0]++;}
        if(s[i]=='t' || s[i]=='T'){arr[1]++;}
        if(s[i]=='y' || s[i]=='Y'){arr[2]++;}
        if(s[i]=='i' || s[i]=='I'){arr[3]++;}
        if(s[i]=='l' || s[i]=='L'){arr[4]++;}
        if(s[i]=='P' || s[i]=='p'){arr[5]++;}
        if(s[i]=='C' || s[i]=='c'){arr[6]++;}
   }
   if(arr[0]>=2 && arr[1] && arr[2] && arr[3] && arr[4] && arr[5] && arr[6])
   {
        cout<<"Yes";
   }
   else{cout<<"No";}



}

Copy
We Love Atypical ai365ak
GNU G++17
0 ms
796 KB
Accepted