Source Code
#include <bits/stdc++.h>
using namespace std;
int main ()
{
    string s;
    cin >> s;
    string s1 = "atypical";
    int i = 0 , j = 0;
    for ( ; i < s.size() && j < s1.size() ; i++)
    {
        s[i] = tolower(s[i]);
        if (s[i] == s1[j])j++;
    }
    if (j == (int)s1.size())
        cout << "Yes\n";
    else
        cout << "No\n";
return 0;
}
Copy
We Love Atypical MD0
GNU G++14
0 ms
716 KB
Wrong Answer