Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- using namespace std;
- int main() {
- int t;
- cin>>t;
- map<char, int> vow;
- vow['A'] = vow['E'] = vow['I'] = vow['O'] = vow['U'] = 1;
- while(t--)
- {
- string s;
- cin>>s;
- int f = 1;
- f &= (!vow[s[0]] && vow[s[1]] && !vow[s[2]] && vow[s[3]] && !vow[s[4]] && vow[s[5]] && !vow[s[6]] && !vow[s[7]]);
- if(f) cout<<"Yes\n";
- else cout<<"No\n";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment