Source Code
#include <bits/stdc++.h>
 
using namespace std;
typedef long long ll;

string s;
int frq[30];

int main(){
// #ifndef ONLINE_JUDGE
//   freopen("in.txt", "r", stdin);
// #endif
ios_base::sync_with_stdio(0);
cin.tie(0);

  cin >> s;
  for(int i = 0; i < s.size(); ++i){
    s[i] = tolower(s[i]);
    ++frq[s[i] - 'a'];
  }
  if(frq['a' - 'a'] > 1 && frq['t' - 'a'] > 0 && frq['y' - 'a'] > 0 && frq['p' - 'a'] > 0 && frq['i' - 'a'] > 0 && frq['c' - 'a'] > 0 && frq['l' - 'a'] > 0)
    cout << "Yes";
  else
    cout << "No";
  
 
  return 0;
}
Copy
We Love Atypical Ammar_Lahloh
GNU G++17
1 ms
768 KB
Accepted