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

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