Source Code
#include<bits/stdc++.h>
using namespace std;
#define fastIO ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
typedef long long ll;
int a,t,y,p,I,c,l;
int main()
{
    fastIO
    string s;cin>>s;
    for(int i=0;i<s.length();i++)
    {
        if(s[i]=='A'||s[i]=='a')a++;
        if(s[i]=='T'||s[i]=='t')t++;
        if(s[i]=='Y'||s[i]=='y')y++;
        if(s[i]=='P'||s[i]=='p')p++;
        if(s[i]=='I'||s[i]=='i')I++;
        if(s[i]=='C'||s[i]=='c')c++;
        if(s[i]=='L'||s[i]=='l')l++;
    }
    if(a>1&&t&&y&&p&&I&&c&&l)cout<<"Yes\n";
    else cout<<"No\n";
}
Copy
We Love Atypical 3am0rab1
GNU G++17
0 ms
864 KB
Accepted