Source Code

#include<bits/stdc++.h>
using namespace std;
int main(){

string x;
cin>>x;
string q="Atypical";
for(auto j:q){
for(auto l:x){
  if(l==j||tolower(l)==j)goto here;
}
  cout<<"No";
  exit(0);
  here:
  continue;
}
int co=0,ca=0;
for(auto j:x){
  if(j=='a')++co;
  if(j=='A')++ca;
}
if(co>0&&ca>0)
cout<<"Yes";
else
cout<<"No";
}
Copy
We Love Atypical hasneen
GNU G++17
0 ms
688 KB
Wrong Answer