Source Code
#include <iostream>
using namespace std;
#include <string.h>

int main() {
string s;
cin>>s;

char a[]="atypical";

int i=0,j=0;
while(s[i]!='\0')
{

if(s[i]==a[j] || s[i]==a[j]-32)
j++;

i++;
}

if(j==8)
cout<<"Yes";
else
cout<<"No";

}
Copy
We Love Atypical omarmkht
GNU G++17
0 ms
616 KB
Wrong Answer